Interface ASTIterator

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    ASTLinkedList

    public interface ASTIterator
    extends java.io.Serializable
    The ASTIterator interface defines the functionality required by the enginer, for compiletime and runtime operations. Unlike other script implementations, MVEL does not use a completely normalized AST tree for it's execution. Instead, nodes are organized into a linear order and delivered via this iterator interface, much like bytecode instructions.
    • Method Detail

      • reset

        void reset()
      • skipNode

        void skipNode()
      • back

        void back()
      • nodesBack

        ASTNode nodesBack​(int offset)
      • nodesAhead

        ASTNode nodesAhead​(int offset)
      • hasMoreNodes

        boolean hasMoreNodes()
      • showNodeChain

        java.lang.String showNodeChain()
      • size

        int size()
      • index

        int index()
      • finish

        void finish()
      • addTokenNode

        void addTokenNode​(ASTNode node)