org.mvel2.util
Class ASTLinkedList

java.lang.Object
  extended by 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
ASTLinkedList()
           
ASTLinkedList(ASTIterator iter)
           
ASTLinkedList(ASTNode firstASTNode)
           
ASTLinkedList(ASTNode firstASTNode, int size)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ASTIterator

addTokenNode

public void addTokenNode(ASTNode astNode,
                         ASTNode token2)
Specified by:
addTokenNode in interface ASTIterator

firstNode

public ASTNode firstNode()
Specified by:
firstNode in interface ASTIterator

isSingleNode

public boolean isSingleNode()

firstNonSymbol

public ASTNode firstNonSymbol()

reset

public void reset()
Specified by:
reset in interface ASTIterator

hasMoreNodes

public boolean hasMoreNodes()
Specified by:
hasMoreNodes in interface ASTIterator

nextNode

public ASTNode nextNode()
Specified by:
nextNode in interface ASTIterator

skipNode

public void skipNode()
Specified by:
skipNode in interface ASTIterator

peekNext

public ASTNode peekNext()
Specified by:
peekNext in interface ASTIterator

peekNode

public ASTNode peekNode()
Specified by:
peekNode in interface ASTIterator

removeToken

public void removeToken()

peekLast

public ASTNode peekLast()
Specified by:
peekLast in interface ASTIterator

nodesBack

public ASTNode nodesBack(int offset)
Specified by:
nodesBack in interface ASTIterator

nodesAhead

public ASTNode nodesAhead(int offset)
Specified by:
nodesAhead in interface ASTIterator

back

public void back()
Specified by:
back in interface ASTIterator

showNodeChain

public java.lang.String showNodeChain()
Specified by:
showNodeChain in interface ASTIterator

size

public int size()
Specified by:
size in interface ASTIterator

index

public int index()
Specified by:
index in interface ASTIterator

setCurrentNode

public void setCurrentNode(ASTNode node)

finish

public void finish()
Specified by:
finish in interface ASTIterator


Copyright © 2010. All Rights Reserved.