public class VariableAssigner extends Object implements IVariableAssigner
VariableAssigner class.
| Constructor and Description |
|---|
VariableAssigner() |
| Modifier and Type | Method and Description |
|---|---|
void |
assign(ICmdLineArg<?> arg,
Object target)
assign.
|
static Field |
findFieldInAnyParentOrMyself(ICmdLineArg<?> arg,
Class<?> targetClass,
String errMsg)
findFieldInAnyParentOrMyself.
|
static IVariableAssigner |
getInstance()
Getter for the field
instance. |
Object |
newGroupVariable(CmdLineCLA group,
Object target,
ICmdLineArg<?> factoryValueArg)
newGroupVariable.
|
static IVariableAssigner |
setInstance(IVariableAssigner newInstance)
Setter for the field
instance. |
public static Field findFieldInAnyParentOrMyself(ICmdLineArg<?> arg, Class<?> targetClass, String errMsg) throws ParseException
findFieldInAnyParentOrMyself.
arg - a ICmdLineArg object.targetClass - a Class object.errMsg - a String object.Field object.ParseException - if any.public static IVariableAssigner getInstance()
Getter for the field instance.
IVariableAssigner
object.public static IVariableAssigner setInstance(IVariableAssigner newInstance)
Setter for the field instance.
newInstance - a
IVariableAssigner
object.IVariableAssigner
object.public void assign(ICmdLineArg<?> arg, Object target) throws ParseException
assign.
assign in interface IVariableAssignerarg - a ICmdLineArg object.target - a Object object.ParseException - if any.public Object newGroupVariable(CmdLineCLA group, Object target, ICmdLineArg<?> factoryValueArg) throws ParseException
newGroupVariable.
newGroupVariable in interface IVariableAssignergroup - a CmdLineCLA object.target - a Object object.factoryValueArg - a ICmdLineArg
object.Object object.ParseException - if any.