public class GroovySourceAST extends CommonAST implements Comparable, SourceInfo
Constructor and Description |
---|
GroovySourceAST() |
GroovySourceAST(Token t) |
Modifier and Type | Method and Description |
---|---|
GroovySourceAST |
childAt(int position) |
GroovySourceAST |
childOfType(int type) |
List<GroovySourceAST> |
childrenOfType(int type) |
int |
compareTo(Object object) |
int |
getColumn()
get starting column
|
int |
getColumnLast()
get ending column
|
int |
getLine()
get start line
|
int |
getLineLast()
get ending line
|
String |
getSnippet() |
void |
initialize(AST ast) |
void |
initialize(Token t) |
void |
setColumn(int column)
set start column
|
void |
setColumnLast(int colLast)
set ending column
|
void |
setLast(Token last) |
void |
setLine(int line)
set start line
|
void |
setLineLast(int lineLast)
set ending line
|
void |
setSnippet(String snippet) |
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
public GroovySourceAST()
public GroovySourceAST(Token t)
public void initialize(AST ast)
initialize
in interface AST
initialize
in class CommonAST
public void initialize(Token t)
initialize
in interface AST
initialize
in class CommonAST
public void setLast(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
public void setColumn(int column)
SourceInfo
setColumn
in interface SourceInfo
column
- the columnpublic int getColumn()
SourceInfo
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)
public List<GroovySourceAST> childrenOfType(int type)