SourceInfo
public class GroovySourceToken extends Token implements SourceInfo
Modifier and Type | Field | Description |
---|---|---|
protected int |
col |
|
protected int |
colLast |
|
protected int |
line |
|
protected int |
lineLast |
|
protected java.lang.String |
text |
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
Constructor | Description |
---|---|
GroovySourceToken(int t) |
Constructor using a token type
|
Modifier and Type | Method | 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFilename, getType, setFilename, setType
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()
SourceInfo
getLine
in interface SourceInfo
getLine
in class Token
public java.lang.String getText()
public void setLine(int l)
SourceInfo
setLine
in interface SourceInfo
setLine
in class Token
l
- the linepublic void setText(java.lang.String s)
public int getColumn()
SourceInfo
getColumn
in interface SourceInfo
getColumn
in class Token
public void setColumn(int c)
SourceInfo
setColumn
in interface SourceInfo
setColumn
in class Token
c
- the columnpublic int getLineLast()
SourceInfo
getLineLast
in interface SourceInfo
public void setLineLast(int lineLast)
SourceInfo
setLineLast
in interface SourceInfo
lineLast
- the linepublic int getColumnLast()
SourceInfo
getColumnLast
in interface SourceInfo
public void setColumnLast(int colLast)
SourceInfo
setColumnLast
in interface SourceInfo
colLast
- the column