public class ConstructorInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.LinkedList<org.jlab.coda.cMsg.remoteExec.ConstructorInfo.ConstructorArg> |
argList
List of arguments.
|
(package private) int |
numPrimitiveArgs
Number of primitive type arguments.
|
(package private) int |
numReferenceArgs
Number of reference type arguments that are
not null or do not use a no-arg constructor.
|
Constructor and Description |
---|
ConstructorInfo()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPrimitiveArg(char value)
Add to the argument list a primitive char type with the given value.
|
void |
addPrimitiveArg(char value,
int index)
Add to the argument list a primitive char type with the given value
at the given index into the existing list of arguments.
|
void |
addPrimitiveArg(java.lang.String name,
java.lang.String value)
Add to the argument list a primitive type (except char) with the given value.
|
void |
addPrimitiveArg(java.lang.String name,
java.lang.String value,
int index)
Add to the argument list a primitive type (except char) with the given value
at the given index into the existing list of arguments.
|
void |
addReferenceArg(java.lang.String className,
ConstructorInfo info)
Add to the argument list a reference type with the information necessary
to construct it.
|
void |
addReferenceArg(java.lang.String className,
ConstructorInfo info,
int index)
Add to the argument list a reference type with the information necessary
to construct it at the given index into the existing list of arguments.
|
void |
clearArgs()
Clear all arguments.
|
cMsgMessage |
createMessageFromArgs()
Take argument specification data and store it in a cMsg message.
|
int numPrimitiveArgs
int numReferenceArgs
java.util.LinkedList<org.jlab.coda.cMsg.remoteExec.ConstructorInfo.ConstructorArg> argList
public void clearArgs()
public void addPrimitiveArg(java.lang.String name, java.lang.String value) throws cMsgException
name
- name of primitive typevalue
- value of the argument in String formcMsgException
- if name is reference type, char, or nullpublic void addPrimitiveArg(java.lang.String name, java.lang.String value, int index) throws cMsgException
name
- name of primitive typevalue
- value of the argument in String formindex
- index into the existing argument list at which to add this argcMsgException
- if name is reference type, char, or nullpublic void addPrimitiveArg(char value)
value
- value of the argumentpublic void addPrimitiveArg(char value, int index)
value
- value of the argumentindex
- index into the existing argument list at which to add this argpublic void addReferenceArg(java.lang.String className, ConstructorInfo info) throws cMsgException
className
- name of class to instantiateinfo
- object containing argument data for instantiationcMsgException
- if className refers to primitive type or is nullpublic void addReferenceArg(java.lang.String className, ConstructorInfo info, int index) throws cMsgException
className
- name of class to instantiateinfo
- object containing argument data for instantiationindex
- index into the existing argument list at which to add this argcMsgException
- if className refers to primitive type or is nullpublic cMsgMessage createMessageFromArgs()