xrel.parser
Class ASTLabel
java.lang.Object
|
+--xrel.parser.SimpleNode
|
+--xrel.parser.ASTLabel
- All Implemented Interfaces:
- java.lang.Cloneable, Node
- public class ASTLabel
- extends SimpleNode
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
jjtAccept(XRelParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
setName(java.lang.String n)
|
java.lang.String |
toString()
You can override this method in subclasses of SimpleNode to
customize the way the node appears when the tree is dumped. |
Methods inherited from class xrel.parser.SimpleNode |
addVariable, childrenAccept, clone, dump, getFirstToken, getLastToken, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtmAddChildExt, jjtmCloneSubtree, jjtmCopySubtreeTo, jjtmMoveChildren, jjtmSearchChild, jjtmSetTokens, jjtOpen, jjtSetParent, searchTokenFrom, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTLabel
public ASTLabel(int id)
ASTLabel
public ASTLabel(XRelParser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(XRelParserVisitor visitor,
java.lang.Object data)
- Accept the visitor.
- Overrides:
jjtAccept
in class SimpleNode
getName
public java.lang.String getName()
setName
public void setName(java.lang.String n)
toString
public java.lang.String toString()
- Description copied from class:
SimpleNode
- You can override this method in subclasses of SimpleNode to
customize the way the node appears when the tree is dumped. If
your output uses more than one line you should override
toString(String), otherwise overriding toString() is probably all
you need to do.
- Overrides:
toString
in class SimpleNode
- Following copied from class:
xrel.parser.SimpleNode
- Returns:
- the string associated to the node
- See Also:
Object.toString()