Package jtb.cparser.syntaxtree
Class NodeListOptional
- Object
-
- NodeListOptional
-
- All Implemented Interfaces:
Serializable
,Node
,NodeListInterface
public class NodeListOptional extends Object implements NodeListInterface
Represents an optional grammar list, e.g. ( A )*- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeListOptional()
NodeListOptional(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()
boolean
present()
int
size()
-
-
-
Constructor Detail
-
NodeListOptional
public NodeListOptional()
-
NodeListOptional
public NodeListOptional(Node firstNode)
-
-
Method Detail
-
addNode
public void addNode(Node n)
- Specified by:
addNode
in interfaceNodeListInterface
-
elements
public Enumeration<Node> elements()
- Specified by:
elements
in interfaceNodeListInterface
-
elementAt
public Node elementAt(int i)
- Specified by:
elementAt
in interfaceNodeListInterface
-
size
public int size()
- Specified by:
size
in interfaceNodeListInterface
-
present
public boolean present()
-
-