Operation.ConstructorOperation, Operation.LookupVariableOperation, Operation.MethodOperation, Operation.NullOperation, Operation.PrimitiveTypeOperation, Operation.StringOperation, Operation.WrapperException
Constructor and Description |
---|
ConstructorOperation(Constructor m)
Creates a new ConstructorOperation with the given constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
apply(List<Object> input)
Applies the operation.
|
Class |
getReturnType()
Returns the Class of the object this operation returns.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
executeTree
public ConstructorOperation(Constructor m)
m
- public Object apply(List<Object> input) throws IllegalAccessException, InvocationTargetException, InstantiationException
Operation
apply
in interface Operation
input
- These inputs are used as parameters for the operation, in the
order in which they occur in the list.IllegalAccessException
InvocationTargetException
InstantiationException
public Class getReturnType()
Operation
getReturnType
in interface Operation
Copyright © 2017. All rights reserved.