jtb.syntaxtree
Class NodeOptional

Object
  extended by NodeOptional
All Implemented Interfaces:
Serializable, Node

public class NodeOptional
extends Object
implements Node

Represents an grammar optional node, e.g. ( A )? or [ A ]

See Also:
Serialized Form

Field Summary
 Node node
           
 
Constructor Summary
NodeOptional()
           
NodeOptional(Node n)
           
 
Method Summary
<R> R
accept(GJNoArguVisitor<R> v)
           
<R,A> R
accept(GJVisitor<R,A> v, A argu)
           
<A> void
accept(GJVoidVisitor<A> v, A argu)
           
 void accept(Visitor v)
           
 void addNode(Node n)
           
 Node getParent()
           
 boolean present()
           
 void setParent(Node n)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

public Node node
Constructor Detail

NodeOptional

public NodeOptional()

NodeOptional

public NodeOptional(Node n)
Method Detail

addNode

public void addNode(Node n)

accept

public void accept(Visitor v)
Specified by:
accept in interface Node

accept

public <R,A> R accept(GJVisitor<R,A> v,
                      A argu)
Specified by:
accept in interface Node

accept

public <R> R accept(GJNoArguVisitor<R> v)
Specified by:
accept in interface Node

accept

public <A> void accept(GJVoidVisitor<A> v,
                       A argu)
Specified by:
accept in interface Node

present

public boolean present()

setParent

public void setParent(Node n)
Specified by:
setParent in interface Node

getParent

public Node getParent()
Specified by:
getParent in interface Node