T - return type of this sub-programpublic interface ProtelisAST<T>
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
T |
eval(ExecutionContext context)
Evaluates the program using the passed
ExecutionContext. |
ProtelisAST<?> |
getBranch(int i) |
java.util.List<ProtelisAST<?>> |
getBranches() |
Metadata |
getMetadata() |
java.lang.String |
getName() |
T eval(ExecutionContext context)
ExecutionContext.context - the execution contextProtelisAST<?> getBranch(int i)
i - the indexjava.util.List<ProtelisAST<?>> getBranches()
Metadata getMetadata()
Metadata object containing information about the code that generated this AST node.java.lang.String getName()