Package org.mvel2.util
Class ASTLinkedList
- java.lang.Object
-
- org.mvel2.util.ASTLinkedList
-
- All Implemented Interfaces:
java.io.Serializable
,ASTIterator
public class ASTLinkedList extends java.lang.Object implements ASTIterator
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ASTLinkedList()
ASTLinkedList(ASTNode firstASTNode)
ASTLinkedList(ASTNode firstASTNode, int size)
ASTLinkedList(ASTIterator iter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTokenNode(ASTNode astNode)
void
addTokenNode(ASTNode astNode, ASTNode token2)
void
back()
void
finish()
ASTNode
firstNode()
ASTNode
firstNonSymbol()
boolean
hasMoreNodes()
int
index()
boolean
isSingleNode()
ASTNode
nextNode()
ASTNode
nodesAhead(int offset)
ASTNode
nodesBack(int offset)
ASTNode
peekLast()
ASTNode
peekNext()
ASTNode
peekNode()
void
removeToken()
void
reset()
void
setCurrentNode(ASTNode node)
java.lang.String
showNodeChain()
int
size()
void
skipNode()
-
-
-
Constructor Detail
-
ASTLinkedList
public ASTLinkedList()
-
ASTLinkedList
public ASTLinkedList(ASTIterator iter)
-
ASTLinkedList
public ASTLinkedList(ASTNode firstASTNode)
-
ASTLinkedList
public ASTLinkedList(ASTNode firstASTNode, int size)
-
-
Method Detail
-
addTokenNode
public void addTokenNode(ASTNode astNode)
- Specified by:
addTokenNode
in interfaceASTIterator
-
addTokenNode
public void addTokenNode(ASTNode astNode, ASTNode token2)
- Specified by:
addTokenNode
in interfaceASTIterator
-
firstNode
public ASTNode firstNode()
- Specified by:
firstNode
in interfaceASTIterator
-
isSingleNode
public boolean isSingleNode()
-
firstNonSymbol
public ASTNode firstNonSymbol()
-
reset
public void reset()
- Specified by:
reset
in interfaceASTIterator
-
hasMoreNodes
public boolean hasMoreNodes()
- Specified by:
hasMoreNodes
in interfaceASTIterator
-
nextNode
public ASTNode nextNode()
- Specified by:
nextNode
in interfaceASTIterator
-
skipNode
public void skipNode()
- Specified by:
skipNode
in interfaceASTIterator
-
peekNext
public ASTNode peekNext()
- Specified by:
peekNext
in interfaceASTIterator
-
peekNode
public ASTNode peekNode()
- Specified by:
peekNode
in interfaceASTIterator
-
removeToken
public void removeToken()
-
peekLast
public ASTNode peekLast()
- Specified by:
peekLast
in interfaceASTIterator
-
nodesBack
public ASTNode nodesBack(int offset)
- Specified by:
nodesBack
in interfaceASTIterator
-
nodesAhead
public ASTNode nodesAhead(int offset)
- Specified by:
nodesAhead
in interfaceASTIterator
-
back
public void back()
- Specified by:
back
in interfaceASTIterator
-
showNodeChain
public java.lang.String 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
public void setCurrentNode(ASTNode node)
-
finish
public void finish()
- Specified by:
finish
in interfaceASTIterator
-
-