public class GroovySourceToken extends Token implements SourceInfo
| Modifier and Type | Field and Description |
|---|---|
protected int |
col |
protected int |
colLast |
protected int |
line |
protected int |
lineLast |
protected String |
text |
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type| 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
|
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(String s)
set the source token text
|
String |
toString() |
getFilename, getType, setFilename, setTypeprotected int line
protected 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 Tokenpublic String getText()
public void setLine(int l)
SourceInfosetLine in interface SourceInfosetLine in class Tokenl - the linepublic void setText(String s)
public int getColumn()
SourceInfogetColumn in interface SourceInfogetColumn in class Tokenpublic void setColumn(int c)
SourceInfosetColumn in interface SourceInfosetColumn in class 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