@Deprecated public final class GenericHoodCall extends AbstractProtelisAST<java.lang.Object>
HoodOp.| Constructor and Description |
|---|
GenericHoodCall(Metadata metadata,
boolean includeSelf,
org.eclipse.xtext.common.types.JvmOperation fun,
ProtelisAST<?> nullResult,
ProtelisAST<Field<java.lang.Object>> arg)
Deprecated.
|
GenericHoodCall(Metadata metadata,
boolean includeSelf,
ProtelisAST<FunctionDefinition> fun,
ProtelisAST<?> nullResult,
ProtelisAST<Field<java.lang.Object>> arg)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(ExecutionContext context)
Deprecated.
Evaluates this AST node.
|
Bytecode |
getBytecode()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringFor, toStringpublic GenericHoodCall(Metadata metadata, boolean includeSelf, ProtelisAST<FunctionDefinition> fun, ProtelisAST<?> nullResult, ProtelisAST<Field<java.lang.Object>> arg)
metadata - A Metadata object containing information about the code that generated this AST node.includeSelf - if true, sigma won't be excludedfun - the FunctionDefinition to applynullResult - the expression that will be evaluated if the field is emptyarg - the argument to evaluate (must return a Field).public GenericHoodCall(Metadata metadata, boolean includeSelf, org.eclipse.xtext.common.types.JvmOperation fun, ProtelisAST<?> nullResult, ProtelisAST<Field<java.lang.Object>> arg)
metadata - A Metadata object containing information about the code that generated this AST node.includeSelf - if true, sigma won't be excludedfun - the FunctionDefinition to applynullResult - the expression that will be evaluated if the field is emptyarg - the argument to evaluate (must return a Field).public 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 getName()
getName in interface ProtelisAST<java.lang.Object>getName in class AbstractProtelisAST<java.lang.Object>