org.tromer.jie.syntaxtree
Class NodeOptional

java.lang.Object
  |
  +--org.tromer.jie.PiggybackableNode
        |
        +--org.tromer.jie.syntaxtree.NodeOptional

public class NodeOptional
extends PiggybackableNode
implements Node

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

See Also:
Serialized Form

Field Summary
 Node node
           
 
Fields inherited from class org.tromer.jie.PiggybackableNode
beginColumn, beginLine, endColumn, endLine, postpiggy, postvisitIndex, prepiggy, previsitIndex
 
Constructor Summary
NodeOptional()
           
NodeOptional(Node n)
           
 
Method Summary
 java.lang.Object accept(ObjectVisitor v, java.lang.Object argu)
           
 void accept(Visitor v)
           
 void addNode(Node n)
           
 Node getParent()
           
 boolean present()
           
 void setParent(Node n)
           
 
Methods inherited from class org.tromer.jie.PiggybackableNode
attachPostpiggy, attachPrepiggy, getEndPos, getStartPos
 
Methods inherited from class java.lang.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 java.lang.Object accept(ObjectVisitor v,
                               java.lang.Object 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