public class ReflectiveConstructorExecutor extends Object implements ConstructorExecutor
| Constructor and Description |
|---|
ReflectiveConstructorExecutor(Constructor<?> ctor) |
| Modifier and Type | Method and Description |
|---|---|
TypedValue |
execute(EvaluationContext context,
Object... arguments)
Execute a constructor in the specified context using the specified arguments.
|
Constructor<?> |
getConstructor() |
public ReflectiveConstructorExecutor(Constructor<?> ctor)
public TypedValue execute(EvaluationContext context, 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 Constructor<?> getConstructor()