Package org.codehaus.groovy.antlr
Class GroovySourceAST
- java.lang.Object
- 
- antlr.BaseAST
- 
- antlr.CommonAST
- 
- org.codehaus.groovy.antlr.GroovySourceAST
 
 
 
- 
- All Implemented Interfaces:
- AST,- java.io.Serializable,- java.lang.Comparable,- SourceInfo
 
 public class GroovySourceAST extends CommonAST implements java.lang.Comparable, SourceInfo We have an AST subclass so we can track source information. Very odd that ANTLR doesn't do this by default.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description GroovySourceAST()GroovySourceAST(Token t)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GroovySourceASTchildAt(int position)GroovySourceASTchildOfType(int type)java.util.List<GroovySourceAST>childrenOfType(int type)intcompareTo(java.lang.Object object)intgetColumn()get starting columnintgetColumnLast()get ending columnintgetLine()get start lineintgetLineLast()get ending linejava.lang.StringgetSnippet()voidinitialize(AST ast)voidinitialize(Token t)voidsetColumn(int column)set start columnvoidsetColumnLast(int colLast)set ending columnvoidsetLast(Token last)voidsetLine(int line)set start linevoidsetLineLast(int lineLast)set ending linevoidsetSnippet(java.lang.String snippet)- 
Methods inherited from class antlr.BaseASTaddChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
- 
 
- 
- 
- 
Constructor Detail- 
GroovySourceASTpublic GroovySourceAST() 
 - 
GroovySourceASTpublic GroovySourceAST(Token t) 
 
- 
 - 
Method Detail- 
initializepublic void initialize(AST ast) - Specified by:
- initializein interface- AST
- Overrides:
- initializein class- CommonAST
 
 - 
initializepublic void initialize(Token t) - Specified by:
- initializein interface- AST
- Overrides:
- initializein class- CommonAST
 
 - 
setLastpublic void setLast(Token last) 
 - 
getLineLastpublic int getLineLast() Description copied from interface:SourceInfoget ending line- Specified by:
- getLineLastin interface- SourceInfo
- Returns:
- the ending line
 
 - 
setLineLastpublic void setLineLast(int lineLast) Description copied from interface:SourceInfoset ending line- Specified by:
- setLineLastin interface- SourceInfo
- Parameters:
- lineLast- the line
 
 - 
getColumnLastpublic int getColumnLast() Description copied from interface:SourceInfoget ending column- Specified by:
- getColumnLastin interface- SourceInfo
- Returns:
- the ending column
 
 - 
setColumnLastpublic void setColumnLast(int colLast) Description copied from interface:SourceInfoset ending column- Specified by:
- setColumnLastin interface- SourceInfo
- Parameters:
- colLast- the column
 
 - 
setLinepublic void setLine(int line) Description copied from interface:SourceInfoset start line- Specified by:
- setLinein interface- SourceInfo
- Parameters:
- line- the line
 
 - 
getLinepublic int getLine() Description copied from interface:SourceInfoget start line
 - 
setColumnpublic void setColumn(int column) Description copied from interface:SourceInfoset start column- Specified by:
- setColumnin interface- SourceInfo
- Parameters:
- column- the column
 
 - 
getColumnpublic int getColumn() Description copied from interface:SourceInfoget starting column
 - 
setSnippetpublic void setSnippet(java.lang.String snippet) 
 - 
getSnippetpublic java.lang.String getSnippet() 
 - 
compareTopublic int compareTo(java.lang.Object object) - Specified by:
- compareToin interface- java.lang.Comparable
 
 - 
childAtpublic GroovySourceAST childAt(int position) 
 - 
childOfTypepublic GroovySourceAST childOfType(int type) 
 - 
childrenOfTypepublic java.util.List<GroovySourceAST> childrenOfType(int type) 
 
- 
 
-