|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
org.codehaus.groovy.antlr.GroovySourceAST
We have an AST subclass so we can track source information. Very odd that ANTLR doesn't do this by default.
Field Summary |
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
GroovySourceAST()
|
|
GroovySourceAST(antlr.Token t)
|
Method Summary | |
GroovySourceAST |
childAt(int position)
|
GroovySourceAST |
childOfType(int type)
|
int |
compareTo(Object object)
|
int |
getColumn()
|
int |
getColumnLast()
|
int |
getLine()
|
int |
getLineLast()
|
String |
getSnippet()
|
void |
initialize(antlr.collections.AST ast)
|
void |
initialize(antlr.Token t)
|
void |
setColumn(int column)
|
void |
setColumnLast(int colLast)
|
void |
setLast(antlr.Token last)
|
void |
setLine(int line)
|
void |
setLineLast(int lineLast)
|
void |
setSnippet(String snippet)
|
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 GroovySourceAST()
public GroovySourceAST(antlr.Token t)
Method Detail |
public void initialize(antlr.collections.AST ast)
initialize
in interface antlr.collections.AST
public void initialize(antlr.Token t)
initialize
in interface antlr.collections.AST
public void setLast(antlr.Token last)
public int getLineLast()
public void setLineLast(int lineLast)
public int getColumnLast()
public void setColumnLast(int colLast)
public void setLine(int line)
public int getLine()
getLine
in interface antlr.collections.AST
public void setColumn(int column)
public int getColumn()
getColumn
in interface antlr.collections.AST
public void setSnippet(String snippet)
public String getSnippet()
public int compareTo(Object object)
compareTo
in interface Comparable
public GroovySourceAST childAt(int position)
public GroovySourceAST childOfType(int type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |