Package jtb.cparser.syntaxtree
Class NodeSequence
- Object
-
- NodeSequence
-
- All Implemented Interfaces:
Serializable
,Node
,NodeListInterface
public class NodeSequence extends Object 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
-
-
Constructor Summary
Constructors Constructor Description NodeSequence(int n)
NodeSequence(Node firstNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor v)
void
addNode(Node n)
Node
elementAt(int i)
Enumeration<Node>
elements()
int
size()
-
-
-
Constructor Detail
-
NodeSequence
public NodeSequence(int n)
-
NodeSequence
public NodeSequence(Node firstNode)
-
-
Method Detail
-
addNode
public void addNode(Node n)
- Specified by:
addNode
in interfaceNodeListInterface
-
elementAt
public Node elementAt(int i)
- Specified by:
elementAt
in interfaceNodeListInterface
-
elements
public Enumeration<Node> elements()
- Specified by:
elements
in interfaceNodeListInterface
-
size
public int size()
- Specified by:
size
in interfaceNodeListInterface
-
-