public class GroovySourceToken extends antlr.Token implements SourceInfo
| Modifier and Type | Field and Description | 
|---|---|
| protected int | col | 
| protected int | colLast | 
| protected int | line | 
| protected int | lineLast | 
| protected java.lang.String | text | 
| Constructor and Description | 
|---|
| GroovySourceToken(int t)Constructor using a token type | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getColumn()get starting column | 
| int | getColumnLast()get ending column | 
| int | getLine()get start line | 
| int | getLineLast()get ending line | 
| java.lang.String | getText()get the source token text | 
| void | setColumn(int c)set start column | 
| void | setColumnLast(int colLast)set ending column | 
| void | setLine(int l)set start line | 
| void | setLineLast(int lineLast)set ending line | 
| void | setText(java.lang.String s)set the source token text | 
| java.lang.String | toString() | 
protected int line
protected java.lang.String text
protected int col
protected int lineLast
protected int colLast
public GroovySourceToken(int t)
t - the typepublic int getLine()
SourceInfogetLine in interface SourceInfogetLine in class antlr.Tokenpublic java.lang.String getText()
getText in class antlr.Tokenpublic void setLine(int l)
SourceInfosetLine in interface SourceInfosetLine in class antlr.Tokenl - the linepublic void setText(java.lang.String s)
setText in class antlr.Tokens - the textpublic java.lang.String toString()
toString in class antlr.Tokenpublic int getColumn()
SourceInfogetColumn in interface SourceInfogetColumn in class antlr.Tokenpublic void setColumn(int c)
SourceInfosetColumn in interface SourceInfosetColumn in class antlr.Tokenc - the columnpublic int getLineLast()
SourceInfogetLineLast in interface SourceInfopublic void setLineLast(int lineLast)
SourceInfosetLineLast in interface SourceInfolineLast - the linepublic int getColumnLast()
SourceInfogetColumnLast in interface SourceInfopublic void setColumnLast(int colLast)
SourceInfosetColumnLast in interface SourceInfocolLast - the column