org.tromer.jie.syntaxtree
Class NodeSequence

java.lang.Object
  |
  +--org.tromer.jie.PiggybackableNode
        |
        +--org.tromer.jie.syntaxtree.NodeSequence

public class NodeSequence
extends PiggybackableNode
implements NodeListInterface

Represents a sequence of nodes nested within a choice, list, optional list, or optional, e.g. ( A B )+ or [ C D E ]

See Also:
Serialized Form

Field Summary
 java.util.Vector nodes
           
 
Fields inherited from class org.tromer.jie.PiggybackableNode
beginColumn, beginLine, endColumn, endLine, postpiggy, postvisitIndex, prepiggy, previsitIndex
 
Constructor Summary
NodeSequence(int n)
           
NodeSequence(Node firstNode)
           
 
Method Summary
 java.lang.Object accept(ObjectVisitor v, java.lang.Object argu)
           
 void accept(Visitor v)
           
 void addNode(Node n)
           
 Node elementAt(int i)
           
 java.util.Enumeration elements()
           
 Node getParent()
           
 void setParent(Node n)
           
 int size()
           
 
Methods inherited from class org.tromer.jie.PiggybackableNode
attachPostpiggy, attachPrepiggy, getEndPos, getStartPos
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

public java.util.Vector nodes
Constructor Detail

NodeSequence

public NodeSequence(int n)

NodeSequence

public NodeSequence(Node firstNode)
Method Detail

addNode

public void addNode(Node n)
Specified by:
addNode in interface NodeListInterface

elementAt

public Node elementAt(int i)
Specified by:
elementAt in interface NodeListInterface

elements

public java.util.Enumeration elements()
Specified by:
elements in interface NodeListInterface

size

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

accept

public void accept(Visitor v)

accept

public java.lang.Object accept(ObjectVisitor v,
                               java.lang.Object argu)

setParent

public void setParent(Node n)

getParent

public Node getParent()