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.Object
evaluate(ExecutionContext context)
Deprecated.Evaluates this AST node.Bytecode
getBytecode()
Deprecated.java.lang.String
getName()
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
- AMetadata
object containing information about the code that generated this AST node.includeSelf
- if true, sigma won't be excludedfun
- theFunctionDefinition
to 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
- AMetadata
object containing information about the code that generated this AST node.includeSelf
- if true, sigma won't be excludedfun
- theFunctionDefinition
to 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:AbstractProtelisAST
Evaluates this AST node. This method can throw any exception,AbstractProtelisAST
takes care of storing the necessary metadata.- Specified by:
evaluate
in classAbstractProtelisAST<java.lang.Object>
- Parameters:
context
- the execution context- Returns:
- the result of the evaluation
-
getName
public java.lang.String getName()
Deprecated.- Specified by:
getName
in interfaceProtelisAST<java.lang.Object>
- Overrides:
getName
in classAbstractProtelisAST<java.lang.Object>
- Returns:
- The name of the operation
-
-