minijava.syntaxtree
Class NodeList
java.lang.Object
minijava.syntaxtree.NodeList
- All Implemented Interfaces:
- java.io.Serializable, Node, NodeListInterface
public class NodeList
- extends java.lang.Object
- implements NodeListInterface
Represents a grammar list, e.g. ( A )+
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
public java.util.Vector<Node> nodes
NodeList
public NodeList()
NodeList
public NodeList(Node firstNode)
addNode
public void addNode(Node n)
- Specified by:
addNode
in interface NodeListInterface
elements
public java.util.Enumeration<Node> 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
accept
public void accept(Visitor v)
- Specified by:
accept
in interface Node
- Specified by:
accept
in interface NodeListInterface
accept
public <R,A> R accept(GJVisitor<R,A> v,
A argu)
- Specified by:
accept
in interface Node
- Specified by:
accept
in interface NodeListInterface
accept
public <R> R accept(GJNoArguVisitor<R> v)
- Specified by:
accept
in interface Node
- Specified by:
accept
in interface NodeListInterface
accept
public <A> void accept(GJVoidVisitor<A> v,
A argu)
- Specified by:
accept
in interface Node
- Specified by:
accept
in interface NodeListInterface