Package org.mvel2.util
Class ASTLinkedList
java.lang.Object
org.mvel2.util.ASTLinkedList
- All Implemented Interfaces:
Serializable
,ASTIterator
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionASTLinkedList
(ASTNode firstASTNode) ASTLinkedList
(ASTNode firstASTNode, int size) ASTLinkedList
(ASTIterator iter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTokenNode
(ASTNode astNode) void
addTokenNode
(ASTNode astNode, ASTNode token2) void
back()
void
finish()
boolean
int
index()
boolean
nextNode()
nodesAhead
(int offset) nodesBack
(int offset) peekLast()
peekNext()
peekNode()
void
void
reset()
void
setCurrentNode
(ASTNode node) int
size()
void
skipNode()
-
Field Details
-
firstASTNode
-
current
-
last
-
size
private int size
-
-
Constructor Details
-
ASTLinkedList
public ASTLinkedList() -
ASTLinkedList
-
ASTLinkedList
-
ASTLinkedList
-
-
Method Details
-
addTokenNode
- Specified by:
addTokenNode
in interfaceASTIterator
-
addTokenNode
- Specified by:
addTokenNode
in interfaceASTIterator
-
firstNode
- Specified by:
firstNode
in interfaceASTIterator
-
isSingleNode
public boolean isSingleNode() -
firstNonSymbol
-
reset
public void reset()- Specified by:
reset
in interfaceASTIterator
-
hasMoreNodes
public boolean hasMoreNodes()- Specified by:
hasMoreNodes
in interfaceASTIterator
-
nextNode
- Specified by:
nextNode
in interfaceASTIterator
-
skipNode
public void skipNode()- Specified by:
skipNode
in interfaceASTIterator
-
peekNext
- Specified by:
peekNext
in interfaceASTIterator
-
peekNode
- Specified by:
peekNode
in interfaceASTIterator
-
removeToken
public void removeToken() -
peekLast
- Specified by:
peekLast
in interfaceASTIterator
-
nodesBack
- Specified by:
nodesBack
in interfaceASTIterator
-
nodesAhead
- Specified by:
nodesAhead
in interfaceASTIterator
-
back
public void back()- Specified by:
back
in interfaceASTIterator
-
showNodeChain
- Specified by:
showNodeChain
in interfaceASTIterator
-
size
public int size()- Specified by:
size
in interfaceASTIterator
-
index
public int index()- Specified by:
index
in interfaceASTIterator
-
setCurrentNode
-
finish
public void finish()- Specified by:
finish
in interfaceASTIterator
-