Package org.mvel2.util
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddTokenNode(ASTNode node)voidaddTokenNode(ASTNode node1, ASTNode node2)voidback()voidfinish()ASTNodefirstNode()booleanhasMoreNodes()intindex()ASTNodenextNode()ASTNodenodesAhead(int offset)ASTNodenodesBack(int offset)ASTNodepeekLast()ASTNodepeekNext()ASTNodepeekNode()voidreset()StringshowNodeChain()intsize()voidskipNode()
-
-
-
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)
-
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)
-
-