T - the type of the constantpublic class Constant<T> extends AbstractProtelisAST<T>
| Modifier and Type | Method and Description |
|---|---|
T |
evaluate(ExecutionContext context)
Evaluates this AST node.
|
Bytecode |
getBytecode() |
T |
getConstantValue() |
java.lang.String |
getName() |
java.lang.String |
toString() |
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringForpublic final T evaluate(ExecutionContext context)
AbstractProtelisASTAbstractProtelisAST takes care of storing the necessary metadata.evaluate in class AbstractProtelisAST<T>context - the execution contextpublic java.lang.String getName()
getName in interface ProtelisAST<T>getName in class AbstractProtelisAST<T>public java.lang.String toString()
toString in class AbstractProtelisAST<T>public final T getConstantValue()