Class GenericHoodCall

    • Constructor Detail

      • GenericHoodCall

        public GenericHoodCall​(Metadata metadata,
                               boolean includeSelf,
                               ProtelisAST<FunctionDefinition> fun,
                               ProtelisAST<?> nullResult,
                               ProtelisAST<Field<java.lang.Object>> arg)
        Deprecated.
        Parameters:
        metadata - A Metadata object containing information about the code that generated this AST node.
        includeSelf - if true, sigma won't be excluded
        fun - the FunctionDefinition to apply
        nullResult - the expression that will be evaluated if the field is empty
        arg - the argument to evaluate (must return a Field).
      • 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 - A Metadata object containing information about the code that generated this AST node.
        includeSelf - if true, sigma won't be excluded
        fun - the FunctionDefinition to apply
        nullResult - the expression that will be evaluated if the field is empty
        arg - the argument to evaluate (must return a Field).
    • 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 class AbstractProtelisAST<java.lang.Object>
        Parameters:
        context - the execution context
        Returns:
        the result of the evaluation
      • getBytecode

        public Bytecode getBytecode()
        Deprecated.
        Returns:
        the element Bytecode
      • getName

        public java.lang.String getName()
        Deprecated.
        Specified by:
        getName in interface ProtelisAST<java.lang.Object>
        Overrides:
        getName in class AbstractProtelisAST<java.lang.Object>
        Returns:
        The name of the operation