public class Antlr3NRLBaseAst extends org.antlr.runtime.tree.CommonTree implements INRLAstNode
childIndex, parent, startIndex, stopIndex, tokenNEWLINE| Constructor and Description |
|---|
Antlr3NRLBaseAst() |
Antlr3NRLBaseAst(org.antlr.runtime.Token token) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(INRLAstVisitor visitor)
Accept a visitor to this node.
|
protected String |
doIndent(int indent)
Return an indentation of the given size.
|
String |
dump(int indent)
Dump the AST and its children for debugging purposes
|
int |
getColumn()
Return the column in the input file where this node occurred.
|
int |
getLine()
Return the line in the input file where this node occurred.
|
Object |
getUserData(String key)
Return a named user data object associated with this AST node.
|
void |
initialisePositionFromChild(int childPos) |
void |
setColumn(int column) |
void |
setLine(int line) |
void |
setUserData(String key,
Object data)
Associate user data with this AST node, under a given key.
|
dupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreepublic Antlr3NRLBaseAst()
public Antlr3NRLBaseAst(org.antlr.runtime.Token token)
public void accept(INRLAstVisitor visitor)
INRLAstNodeaccept in interface INRLAstNodevisitor - the visitorprotected String doIndent(int indent)
indent - the indentationpublic String dump(int indent)
INRLAstNodedump in interface INRLAstNodeindent - the indentation count, 0 on first callpublic int getColumn()
INRLAstNodegetColumn in interface INRLAstNodepublic int getLine()
INRLAstNodegetLine in interface INRLAstNodegetLine in interface org.antlr.runtime.tree.TreegetLine in class org.antlr.runtime.tree.CommonTreepublic Object getUserData(String key)
INRLAstNodegetUserData in interface INRLAstNodekey - the key identifying the datapublic void initialisePositionFromChild(int childPos)
public void setLine(int line)
public void setColumn(int column)
public void setUserData(String key, Object data)
INRLAstNodesetUserData in interface INRLAstNodekey - the keydata - the dataCopyright © 2006-2013. All Rights Reserved.