public final class Eval extends AbstractPersistedTree<org.apache.commons.lang3.tuple.Pair<java.lang.String,ProtelisProgram>,java.lang.Object>
| Constructor and Description |
|---|
Eval(Metadata metadata,
ProtelisAST<?> arg) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(ExecutionContext context)
Evaluates this AST node.
|
Bytecode |
getBytecode() |
java.lang.String |
toString() |
loadState, saveStatebranchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, getName, isNullable, stringForpublic Eval(Metadata metadata, ProtelisAST<?> arg)
metadata - A Metadata object containing information about the code that generated this AST node.arg - argument whose annotation will be used as a string
representing a programpublic java.lang.Object evaluate(ExecutionContext context)
AbstractProtelisASTAbstractProtelisAST takes care of storing the necessary metadata.evaluate in class AbstractProtelisAST<java.lang.Object>context - the execution contextpublic java.lang.String toString()
AbstractPersistedTreetoString in class AbstractPersistedTree<org.apache.commons.lang3.tuple.Pair<java.lang.String,ProtelisProgram>,java.lang.Object>