org.tromer.jie.syntaxtree
Class NodeListOptional
java.lang.Object
|
+--org.tromer.jie.PiggybackableNode
|
+--org.tromer.jie.syntaxtree.NodeListOptional
- public class NodeListOptional
- extends PiggybackableNode
- implements NodeListInterface
Represents an optional grammar list, e.g. ( A )*
- See Also:
- Serialized Form
Field Summary |
java.util.Vector |
nodes
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
nodes
public java.util.Vector nodes
NodeListOptional
public NodeListOptional()
NodeListOptional
public NodeListOptional(Node firstNode)
addNode
public void addNode(Node n)
- Specified by:
- addNode in interface NodeListInterface
elements
public java.util.Enumeration elements()
- Specified by:
- elements in interface NodeListInterface
elementAt
public Node elementAt(int i)
- Specified by:
- elementAt in interface NodeListInterface
size
public int size()
- Specified by:
- size in interface NodeListInterface
present
public boolean present()
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()