org.mvel2.util
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 Summary
 void addTokenNode(ASTNode node)
           
 void addTokenNode(ASTNode node1, ASTNode node2)
           
 void back()
           
 void finish()
           
 ASTNode firstNode()
           
 boolean hasMoreNodes()
           
 int index()
           
 ASTNode nextNode()
           
 ASTNode nodesBack(int offset)
           
 ASTNode peekLast()
           
 ASTNode peekNext()
           
 ASTNode peekNode()
           
 void reset()
           
 java.lang.String showNodeChain()
           
 int size()
           
 void skipNode()
           
 

Method Detail

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)

hasMoreNodes

boolean hasMoreNodes()

showNodeChain

java.lang.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)


Copyright © 2008. All Rights Reserved.