class ReflectiveConstructorExecutor extends java.lang.Object implements ConstructorExecutor
Modifier and Type | Field and Description |
---|---|
private int[] |
argsRequiringConversion |
private java.lang.reflect.Constructor<?> |
ctor |
private java.lang.Integer |
varargsPosition |
Constructor and Description |
---|
ReflectiveConstructorExecutor(java.lang.reflect.Constructor<?> ctor,
int[] argsRequiringConversion) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
execute(EvaluationContext context,
java.lang.Object... arguments)
Execute a constructor in the specified context using the specified arguments.
|
private final java.lang.reflect.Constructor<?> ctor
private final java.lang.Integer varargsPosition
private final int[] argsRequiringConversion
public ReflectiveConstructorExecutor(java.lang.reflect.Constructor<?> ctor, int[] argsRequiringConversion)
public TypedValue execute(EvaluationContext context, java.lang.Object... arguments) throws AccessException
ConstructorExecutor
execute
in interface ConstructorExecutor
context
- the evaluation context in which the command is being executedarguments
- the arguments to the constructor call, should match (in terms of number and type) whatever the
command will need to runAccessException
- if there is a problem executing the command or the CommandExecutor is no longer valid