|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
net.sourceforge.nrl.parser.ast.impl.Antlr3NRLBaseAst
public class Antlr3NRLBaseAst
The basic AST node, extends the ANTLR 3 AST.
Field Summary |
---|
Fields inherited from class org.antlr.runtime.tree.CommonTree |
---|
childIndex, parent, startIndex, stopIndex, token |
Fields inherited from class org.antlr.runtime.tree.BaseTree |
---|
children |
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
NEWLINE |
Fields inherited from interface org.antlr.runtime.tree.Tree |
---|
INVALID_NODE |
Constructor Summary | |
---|---|
Antlr3NRLBaseAst()
|
|
Antlr3NRLBaseAst(org.antlr.runtime.Token token)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.antlr.runtime.tree.CommonTree |
---|
dupNode, getCharPositionInLine, getChildIndex, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString |
Methods inherited from class org.antlr.runtime.tree.BaseTree |
---|
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Antlr3NRLBaseAst()
public Antlr3NRLBaseAst(org.antlr.runtime.Token token)
Method Detail |
---|
public void accept(INRLAstVisitor visitor)
INRLAstNode
accept
in interface INRLAstNode
visitor
- the visitorprotected String doIndent(int indent)
indent
- the indentation
public String dump(int indent)
INRLAstNode
dump
in interface INRLAstNode
indent
- the indentation count, 0 on first call
public int getColumn()
INRLAstNode
getColumn
in interface INRLAstNode
public int getLine()
INRLAstNode
getLine
in interface INRLAstNode
getLine
in interface org.antlr.runtime.tree.Tree
getLine
in class org.antlr.runtime.tree.CommonTree
public Object getUserData(String key)
INRLAstNode
getUserData
in interface INRLAstNode
key
- the key identifying the data
public void initialisePositionFromChild(int childPos)
public void setLine(int line)
public void setColumn(int column)
public void setUserData(String key, Object data)
INRLAstNode
setUserData
in interface INRLAstNode
key
- the keydata
- the data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |