public interface Operation
Modifier and Type | Interface and Description |
---|---|
static class |
Operation.ConstructorOperation
This operation creates a new object with a given java constructor.
|
static class |
Operation.LookupVariableOperation
An operation that looks up a variable that was defined in a previous line of the
program / task.
|
static class |
Operation.MethodOperation
This operation executes a given java method.
|
static class |
Operation.NullOperation
Returns always null.
|
static class |
Operation.PrimitiveTypeOperation
Creates an operation that always returns a given constant (Number or boolean).
|
static class |
Operation.StringOperation
An operation that returns a given constant string.
|
static class |
Operation.WrapperException |
Modifier and Type | Method and Description |
---|---|
Object |
apply(List<Object> input)
Applies the operation.
|
static Object |
executeTree(Tree<Operation> tree)
Runs a tree of operations.
|
Class |
getReturnType()
Returns the Class of the object this operation returns.
|
Object apply(List<Object> input) throws IllegalAccessException, InvocationTargetException, InstantiationException
input
- These inputs are used as parameters for the operation, in the
order in which they occur in the list.IllegalAccessException
InvocationTargetException
InstantiationException
Class getReturnType()
Copyright © 2017. All rights reserved.