|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object antlr.BaseAST antlr.CommonAST org.codehaus.groovy.antlr.GroovySourceAST
public class GroovySourceAST extends antlr.CommonAST
We have an AST subclass so we can track source information. Very odd that ANTLR doesn't do this by default.
Constructor Summary | |
GroovySourceAST()
|
|
GroovySourceAST(Token t)
|
Method Summary | |
---|---|
GroovySourceAST
|
childAt(int position)
|
GroovySourceAST
|
childOfType(int type)
|
java.util.List
|
childrenOfType(int type)
|
int
|
compareTo(java.lang.Object object)
|
int
|
getColumn()
|
int
|
getColumnLast()
|
int
|
getLine()
|
int
|
getLineLast()
|
java.lang.String
|
getSnippet()
|
void
|
initialize(antlr.collections.AST ast)
|
void
|
initialize(Token t)
|
void
|
setColumn(int column)
|
void
|
setColumnLast(int colLast)
|
void
|
setLast(Token last)
|
void
|
setLine(int line)
|
void
|
setLineLast(int lineLast)
|
void
|
setSnippet(java.lang.String snippet)
|
Methods inherited from class antlr.CommonAST | |
---|---|
antlr.CommonAST#initialize(int, java.lang.String), antlr.CommonAST#initialize(antlr.collections.AST), antlr.CommonAST#initialize(antlr.Token), antlr.CommonAST#getType(), antlr.CommonAST#setType(int), antlr.CommonAST#setText(java.lang.String), antlr.CommonAST#getText(), antlr.CommonAST#equals(antlr.collections.AST), antlr.CommonAST#toString(), antlr.CommonAST#decode(java.lang.String), antlr.CommonAST#encode(java.lang.String), antlr.CommonAST#findAll(antlr.collections.AST), antlr.CommonAST#getFirstChild(), antlr.CommonAST#getNextSibling(), antlr.CommonAST#getColumn(), antlr.CommonAST#getLine(), antlr.CommonAST#addChild(antlr.collections.AST), antlr.CommonAST#setFirstChild(antlr.collections.AST), antlr.CommonAST#setNextSibling(antlr.collections.AST), antlr.CommonAST#findAllPartial(antlr.collections.AST), antlr.CommonAST#removeChildren(), antlr.CommonAST#setVerboseStringConversion(boolean, [Ljava.lang.String;), antlr.CommonAST#toStringTree(), antlr.CommonAST#xmlSerializeNode(java.io.Writer), antlr.CommonAST#xmlSerializeRootOpen(java.io.Writer), antlr.CommonAST#xmlSerializeRootClose(java.io.Writer), antlr.CommonAST#xmlSerialize(java.io.Writer), antlr.CommonAST#equalsList(antlr.collections.AST), antlr.CommonAST#getNumberOfChildren(), antlr.CommonAST#equalsListPartial(antlr.collections.AST), antlr.CommonAST#equalsTree(antlr.collections.AST), antlr.CommonAST#equalsTreePartial(antlr.collections.AST), antlr.CommonAST#getTokenNames(), antlr.CommonAST#toStringList(), antlr.CommonAST#wait(long), antlr.CommonAST#wait(long, int), antlr.CommonAST#wait(), antlr.CommonAST#equals(java.lang.Object), antlr.CommonAST#hashCode(), antlr.CommonAST#getClass(), antlr.CommonAST#notify(), antlr.CommonAST#notifyAll() |
Methods inherited from class antlr.BaseAST | |
---|---|
antlr.BaseAST#equals(antlr.collections.AST), antlr.BaseAST#toString(), antlr.BaseAST#decode(java.lang.String), antlr.BaseAST#encode(java.lang.String), antlr.BaseAST#initialize(int, java.lang.String), antlr.BaseAST#initialize(antlr.collections.AST), antlr.BaseAST#initialize(antlr.Token), antlr.BaseAST#getType(), antlr.BaseAST#setType(int), antlr.BaseAST#setText(java.lang.String), antlr.BaseAST#getText(), antlr.BaseAST#findAll(antlr.collections.AST), antlr.BaseAST#getFirstChild(), antlr.BaseAST#getNextSibling(), antlr.BaseAST#getColumn(), antlr.BaseAST#getLine(), antlr.BaseAST#addChild(antlr.collections.AST), antlr.BaseAST#setFirstChild(antlr.collections.AST), antlr.BaseAST#setNextSibling(antlr.collections.AST), antlr.BaseAST#findAllPartial(antlr.collections.AST), antlr.BaseAST#removeChildren(), antlr.BaseAST#setVerboseStringConversion(boolean, [Ljava.lang.String;), antlr.BaseAST#toStringTree(), antlr.BaseAST#xmlSerializeNode(java.io.Writer), antlr.BaseAST#xmlSerializeRootOpen(java.io.Writer), antlr.BaseAST#xmlSerializeRootClose(java.io.Writer), antlr.BaseAST#xmlSerialize(java.io.Writer), antlr.BaseAST#equalsList(antlr.collections.AST), antlr.BaseAST#getNumberOfChildren(), antlr.BaseAST#equalsListPartial(antlr.collections.AST), antlr.BaseAST#equalsTree(antlr.collections.AST), antlr.BaseAST#equalsTreePartial(antlr.collections.AST), antlr.BaseAST#getTokenNames(), antlr.BaseAST#toStringList(), antlr.BaseAST#wait(long), antlr.BaseAST#wait(long, int), antlr.BaseAST#wait(), antlr.BaseAST#equals(java.lang.Object), antlr.BaseAST#hashCode(), antlr.BaseAST#getClass(), antlr.BaseAST#notify(), antlr.BaseAST#notifyAll() |
Constructor Detail |
---|
public GroovySourceAST()
public GroovySourceAST(Token t)
Method Detail |
---|
public GroovySourceAST childAt(int position)
public GroovySourceAST childOfType(int type)
public java.util.List childrenOfType(int type)
public int compareTo(java.lang.Object object)
public int getColumn()
public int getColumnLast()
public int getLine()
public int getLineLast()
public java.lang.String getSnippet()
public void initialize(antlr.collections.AST ast)
public void initialize(Token t)
public void setColumn(int column)
public void setColumnLast(int colLast)
public void setLast(Token last)
public void setLine(int line)
public void setLineLast(int lineLast)
public void setSnippet(java.lang.String snippet)
Groovy Documentation