Class Env
- java.lang.Object
-
- org.protelis.lang.interpreter.impl.AbstractProtelisAST<ExecutionEnvironment>
-
- org.protelis.lang.interpreter.impl.Env
-
- All Implemented Interfaces:
java.io.Serializable
,ProtelisAST<ExecutionEnvironment>
,WithBytecode
public final class Env extends AbstractProtelisAST<ExecutionEnvironment>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionEnvironment
evaluate(ExecutionContext context)
Evaluates this AST node.Bytecode
getBytecode()
java.lang.String
toString()
-
Methods inherited from class org.protelis.lang.interpreter.impl.AbstractProtelisAST
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, getName, isNullable, stringFor
-
-
-
-
Method Detail
-
evaluate
public ExecutionEnvironment evaluate(ExecutionContext context)
Description copied from class:AbstractProtelisAST
Evaluates this AST node. This method can throw any exception,AbstractProtelisAST
takes care of storing the necessary metadata.- Specified by:
evaluate
in classAbstractProtelisAST<ExecutionEnvironment>
- Parameters:
context
- the execution context- Returns:
- the result of the evaluation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractProtelisAST<ExecutionEnvironment>
-
-