Operation.ConstructorOperation, Operation.LookupVariableOperation, Operation.MethodOperation, Operation.NullOperation, Operation.PrimitiveTypeOperation, Operation.StringOperation, Operation.WrapperException
Constructor and Description |
---|
LookupVariableOperation(Object[] computedObjectsTracker,
Class[] resultsTypeTracker,
int index,
String extra) |
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 LookupVariableOperation(Object[] computedObjectsTracker, Class[] resultsTypeTracker, int index, String extra)
computedObjectsTracker
- The array where during execution of the
task the variables are stored. Contains the base irtg at index 0,
followed by the inputs.resultsTypeTracker
- Here, during type checking the types of the
variables are stored. Contains the type of the base irtg at index 0,
followed by the inputs.index
- extra
- store extra information, currently used to distinguish global from local lookupspublic Object apply(List<Object> input) throws IllegalAccessException, InvocationTargetException
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
public Class getReturnType()
Operation
getReturnType
in interface Operation
Copyright © 2017. All rights reserved.