Package org.codehaus.groovy.antlr
Class GroovySourceToken
- java.lang.Object
- 
- antlr.Token
- 
- org.codehaus.groovy.antlr.GroovySourceToken
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- SourceInfo
 
 public class GroovySourceToken extends Token implements SourceInfo This is a Token sub class to track line information
- 
- 
Field SummaryFields Modifier and Type Field Description protected intcolprotected intcolLastprotected intlineprotected intlineLastprotected java.lang.Stringtext- 
Fields inherited from class antlr.TokenbadToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
 
- 
 - 
Constructor SummaryConstructors Constructor Description GroovySourceToken(int t)Constructor using a token type
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumn()get starting columnintgetColumnLast()get ending columnintgetLine()get start lineintgetLineLast()get ending linejava.lang.StringgetText()get the source token textvoidsetColumn(int c)set start columnvoidsetColumnLast(int colLast)set ending columnvoidsetLine(int l)set start linevoidsetLineLast(int lineLast)set ending linevoidsetText(java.lang.String s)set the source token textjava.lang.StringtoString()- 
Methods inherited from class antlr.TokengetFilename, getType, setFilename, setType
 
- 
 
- 
- 
- 
Method Detail- 
getLinepublic int getLine() Description copied from interface:SourceInfoget start line- Specified by:
- getLinein interface- SourceInfo
- Overrides:
- getLinein class- Token
- Returns:
- the starting line
 
 - 
getTextpublic java.lang.String getText() get the source token text
 - 
setLinepublic void setLine(int l) Description copied from interface:SourceInfoset start line- Specified by:
- setLinein interface- SourceInfo
- Overrides:
- setLinein class- Token
- Parameters:
- l- the line
 
 - 
setTextpublic void setText(java.lang.String s) set the source token text
 - 
getColumnpublic int getColumn() Description copied from interface:SourceInfoget starting column- Specified by:
- getColumnin interface- SourceInfo
- Overrides:
- getColumnin class- Token
- Returns:
- the starting column
 
 - 
setColumnpublic void setColumn(int c) Description copied from interface:SourceInfoset start column- Specified by:
- setColumnin interface- SourceInfo
- Overrides:
- setColumnin class- Token
- Parameters:
- c- the column
 
 - 
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
 
 
- 
 
-