Interface ASTIterator

All Superinterfaces:
Serializable
All Known Implementing Classes:
ASTLinkedList

public interface ASTIterator extends 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 Details

    • reset

      void reset()
    • nextNode

      ASTNode nextNode()
    • skipNode

      void skipNode()
    • peekNext

      ASTNode peekNext()
    • peekNode

      ASTNode peekNode()
    • peekLast

      ASTNode peekLast()
    • back

      void back()
    • nodesBack

      ASTNode nodesBack(int offset)
    • nodesAhead

      ASTNode nodesAhead(int offset)
    • hasMoreNodes

      boolean hasMoreNodes()
    • showNodeChain

      String showNodeChain()
    • firstNode

      ASTNode firstNode()
    • size

      int size()
    • index

      int index()
    • finish

      void finish()
    • addTokenNode

      void addTokenNode(ASTNode node)
    • addTokenNode

      void addTokenNode(ASTNode node1, ASTNode node2)