Class GenericHoodCall
- java.lang.Object
-
- org.protelis.lang.interpreter.impl.AbstractProtelisAST<java.lang.Object>
-
- org.protelis.lang.interpreter.impl.GenericHoodCall
-
- All Implemented Interfaces:
java.io.Serializable,ProtelisAST<java.lang.Object>,WithBytecode
@Deprecated public final class GenericHoodCall extends AbstractProtelisAST<java.lang.Object>
Deprecated.Reduce a field into a local value by reduction using aHoodOp.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectevaluate(ExecutionContext context)Deprecated.Evaluates this AST node.BytecodegetBytecode()Deprecated.java.lang.StringgetName()Deprecated.-
Methods inherited from class org.protelis.lang.interpreter.impl.AbstractProtelisAST
branchesToString, branchesToString, eval, forEach, forEachWithIndex, getBranch, getBranches, getBranchesNumber, getMetadata, isNullable, stringFor, toString
-
-
-
-
Constructor Detail
-
GenericHoodCall
public GenericHoodCall(Metadata metadata, boolean includeSelf, ProtelisAST<FunctionDefinition> fun, ProtelisAST<?> nullResult, ProtelisAST<Field<java.lang.Object>> arg)
Deprecated.- Parameters:
metadata- AMetadataobject containing information about the code that generated this AST node.includeSelf- if true, sigma won't be excludedfun- theFunctionDefinitionto applynullResult- the expression that will be evaluated if the field is emptyarg- the argument to evaluate (must return aField).
-
GenericHoodCall
public GenericHoodCall(Metadata metadata, boolean includeSelf, org.eclipse.xtext.common.types.JvmOperation fun, ProtelisAST<?> nullResult, ProtelisAST<Field<java.lang.Object>> arg)
Deprecated.- Parameters:
metadata- AMetadataobject containing information about the code that generated this AST node.includeSelf- if true, sigma won't be excludedfun- theFunctionDefinitionto applynullResult- the expression that will be evaluated if the field is emptyarg- the argument to evaluate (must return aField).
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(ExecutionContext context)
Deprecated.Description copied from class:AbstractProtelisASTEvaluates this AST node. This method can throw any exception,AbstractProtelisASTtakes care of storing the necessary metadata.- Specified by:
evaluatein classAbstractProtelisAST<java.lang.Object>- Parameters:
context- the execution context- Returns:
- the result of the evaluation
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getNamein interfaceProtelisAST<java.lang.Object>- Overrides:
getNamein classAbstractProtelisAST<java.lang.Object>- Returns:
- The name of the operation
-
-