|
|||||||||
| 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 |
|---|
| Fields inherited from class antlr.BaseAST |
|---|
down, right |
| Constructor Summary | |
|---|---|
GroovySourceAST()
|
|
GroovySourceAST(Token t)
|
|
| Method Summary | |
|---|---|
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)
|
| 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(Token t)
| Method Detail |
|---|
public void initialize(AST ast)
initialize in interface ASTinitialize in class CommonASTpublic void initialize(Token t)
initialize in interface ASTinitialize in class CommonASTpublic void setLast(Token last)
public int getLineLast()
SourceInfo
getLineLast in interface SourceInfopublic void setLineLast(int lineLast)
SourceInfo
setLineLast in interface SourceInfolineLast - the linepublic int getColumnLast()
SourceInfo
getColumnLast in interface SourceInfopublic void setColumnLast(int colLast)
SourceInfo
setColumnLast in interface SourceInfocolLast - the columnpublic void setLine(int line)
SourceInfo
setLine in interface SourceInfoline - the linepublic int getLine()
SourceInfo
getLine in interface ASTgetLine in interface SourceInfogetLine in class BaseASTpublic void setColumn(int column)
SourceInfo
setColumn in interface SourceInfocolumn - the columnpublic int getColumn()
SourceInfo
getColumn in interface ASTgetColumn in interface SourceInfogetColumn in class BaseASTpublic void setSnippet(String snippet)
public String getSnippet()
public int compareTo(Object object)
compareTo in interface Comparablepublic GroovySourceAST childAt(int position)
public GroovySourceAST childOfType(int type)
public List<GroovySourceAST> childrenOfType(int type)
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||