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()
SourceInfo
getLine
in interface SourceInfo
getLine
in class antlr.Token
public java.lang.String getText()
getText
in class antlr.Token
public void setLine(int l)
SourceInfo
setLine
in interface SourceInfo
setLine
in class antlr.Token
l
- the linepublic void setText(java.lang.String s)
setText
in class antlr.Token
s
- the textpublic java.lang.String toString()
toString
in class antlr.Token
public int getColumn()
SourceInfo
getColumn
in interface SourceInfo
getColumn
in class antlr.Token
public void setColumn(int c)
SourceInfo
setColumn
in interface SourceInfo
setColumn
in class antlr.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