Package jtb.syntaxtree
Class NodeSequence
- Object
-
- NodeSequence
-
- All Implemented Interfaces:
Serializable
,Node
,NodeListInterface
public class NodeSequence extends Object implements NodeListInterface
- 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 <R> R
accept(GJNoArguVisitor<R> v)
<R,A>
Raccept(GJVisitor<R,A> v, A argu)
<A> void
accept(GJVoidVisitor<A> v, A argu)
void
accept(Visitor v)
void
addNode(Node n)
Node
elementAt(int i)
Enumeration<Node>
elements()
Node
getParent()
void
setParent(Node n)
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
-
accept
public void accept(Visitor v)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in interfaceNodeListInterface
-
accept
public <R,A> R accept(GJVisitor<R,A> v, A argu)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in interfaceNodeListInterface
-
accept
public <R> R accept(GJNoArguVisitor<R> v)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in interfaceNodeListInterface
-
accept
public <A> void accept(GJVoidVisitor<A> v, A argu)
- Specified by:
accept
in interfaceNode
- Specified by:
accept
in interfaceNodeListInterface
-
-