|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
modesteditor.core.antlrparser.ASTWithOffsetInfos
public class ASTWithOffsetInfos
This is the AST class that will be used in the AST such that the TreeWalker has access to line and column information. CommonAST(default) from Antlr does not store line information. So we extend it, so use setASTNodeClass() to set it up in parser.
Field Summary |
---|
Fields inherited from class antlr.BaseAST |
---|
down, right |
Constructor Summary | |
---|---|
ASTWithOffsetInfos()
|
Method Summary | |
---|---|
int |
getColumn()
|
int |
getLine()
|
void |
initialize(antlr.collections.AST ast)
|
void |
initialize(antlr.Token tok)
|
Methods inherited from class antlr.CommonAST |
---|
getText, getType, initialize, setText, setType |
Methods inherited from class antlr.BaseAST |
---|
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASTWithOffsetInfos()
Method Detail |
---|
public void initialize(antlr.Token tok)
initialize
in interface antlr.collections.AST
initialize
in class antlr.CommonAST
public void initialize(antlr.collections.AST ast)
initialize
in interface antlr.collections.AST
initialize
in class antlr.CommonAST
public int getLine()
getLine
in interface antlr.collections.AST
getLine
in class antlr.BaseAST
public int getColumn()
getColumn
in interface antlr.collections.AST
getColumn
in class antlr.BaseAST
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |