|
||||||||||
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
public class GroovySourceAST
We have an AST subclass so we can track source information. Very odd that ANTLR doesn't do this by default.
Field Summary | |
---|---|
private int |
col
|
private int |
colLast
|
private int |
line
|
private int |
lineLast
|
private java.lang.String |
snippet
|
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(java.lang.Object object)
|
int |
getColumn()
get starting column |
int |
getColumnLast()
get ending column |
int |
getLine()
get start line |
int |
getLineLast()
get ending line |
java.lang.String |
getSnippet()
|
void |
initialize(antlr.collections.AST ast)
|
void |
initialize(antlr.Token t)
|
void |
setColumn(int column)
set start column |
void |
setColumnLast(int colLast)
set ending column |
void |
setLast(antlr.Token last)
|
void |
setLine(int line)
set start line |
void |
setLineLast(int lineLast)
set ending line |
void |
setSnippet(java.lang.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 |
Field Detail |
---|
private int line
private int col
private int lineLast
private int colLast
private java.lang.String snippet
Constructor Detail |
---|
public GroovySourceAST()
public GroovySourceAST(antlr.Token t)
Method Detail |
---|
public void initialize(antlr.collections.AST ast)
initialize
in interface antlr.collections.AST
initialize
in class antlr.CommonAST
public void initialize(antlr.Token t)
initialize
in interface antlr.collections.AST
initialize
in class antlr.CommonAST
public void setLast(antlr.Token last)
public int getLineLast()
SourceInfo
getLineLast
in interface SourceInfo
public void setLineLast(int lineLast)
SourceInfo
setLineLast
in interface SourceInfo
lineLast
- the linepublic int getColumnLast()
SourceInfo
getColumnLast
in interface SourceInfo
public void setColumnLast(int colLast)
SourceInfo
setColumnLast
in interface SourceInfo
colLast
- the columnpublic void setLine(int line)
SourceInfo
setLine
in interface SourceInfo
line
- the linepublic int getLine()
SourceInfo
getLine
in interface antlr.collections.AST
getLine
in interface SourceInfo
getLine
in class antlr.BaseAST
public void setColumn(int column)
SourceInfo
setColumn
in interface SourceInfo
column
- the columnpublic int getColumn()
SourceInfo
getColumn
in interface antlr.collections.AST
getColumn
in interface SourceInfo
getColumn
in class antlr.BaseAST
public void setSnippet(java.lang.String snippet)
public java.lang.String getSnippet()
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.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 |