Interface ProtelisAST<T>

    • Method Detail

      • eval

        T eval​(ExecutionContext context)
        Evaluates the program using the passed ExecutionContext.
        Parameters:
        context - the execution context
        Returns:
        the AST evaluation
      • getBranch

        ProtelisAST<?> getBranch​(int i)
        Parameters:
        i - the index
        Returns:
        the i-th branch of the evaluation tree
      • getBranches

        java.util.List<ProtelisAST<?>> getBranches()
        Returns:
        a view of the branches of the tree
      • getMetadata

        Metadata getMetadata()
        Returns:
        A Metadata object containing information about the code that generated this AST node.
      • getName

        java.lang.String getName()
        Returns:
        The name of the operation