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 voidaccept(Visitor v)voidaddNode(Node n)NodeelementAt(int i)Enumeration<Node>elements()booleanpresent()intsize()
-
-
-
Constructor Detail
-
NodeListOptional
public NodeListOptional()
-
NodeListOptional
public NodeListOptional(Node firstNode)
-
-
Method Detail
-
addNode
public void addNode(Node n)
- Specified by:
addNodein interfaceNodeListInterface
-
elements
public Enumeration<Node> elements()
- Specified by:
elementsin interfaceNodeListInterface
-
elementAt
public Node elementAt(int i)
- Specified by:
elementAtin interfaceNodeListInterface
-
size
public int size()
- Specified by:
sizein interfaceNodeListInterface
-
present
public boolean present()
-
-