Package jtb.syntaxtree
Class NodeListOptional
- Object
-
- NodeListOptional
-
- All Implemented Interfaces:
Serializable
,Node
,NodeListInterface
public class NodeListOptional extends Object implements NodeListInterface
- 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 <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()
boolean
present()
void
setParent(Node n)
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()
-
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
-
-