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.
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.