public class ReflectiveConstructorExecutor extends java.lang.Object implements ConstructorExecutor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Constructor<?> |
ctor |
private java.lang.Integer |
varargsPosition |
| Constructor and Description |
|---|
ReflectiveConstructorExecutor(java.lang.reflect.Constructor<?> ctor) |
| 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.
|
java.lang.reflect.Constructor<?> |
getConstructor() |
private final java.lang.reflect.Constructor<?> ctor
private final java.lang.Integer varargsPosition
public ReflectiveConstructorExecutor(java.lang.reflect.Constructor<?> ctor)
public TypedValue execute(EvaluationContext context, java.lang.Object... arguments) throws AccessException
ConstructorExecutorexecute in interface ConstructorExecutorcontext - 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 validpublic java.lang.reflect.Constructor<?> getConstructor()