|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object antlr.Token org.codehaus.groovy.antlr.GroovySourceToken
public class GroovySourceToken extends antlr.Token
This is a Token sub class to track line information
Field Summary | |
---|---|
protected int |
col
|
protected int |
colLast
|
protected int |
line
|
protected int |
lineLast
|
protected java.lang.String |
text
|
Fields inherited from class antlr.Token | |
---|---|
MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, INVALID_TYPE, EOF_TYPE, SKIP, badToken |
Constructor Summary | |
GroovySourceToken(int t)
Constructor using a token type |
Method Summary | |
---|---|
int
|
getColumn()
|
int
|
getColumnLast()
|
int
|
getLine()
|
int
|
getLineLast()
|
java.lang.String
|
getText()
get the source token text |
void
|
setColumn(int c)
|
void
|
setColumnLast(int colLast)
|
void
|
setLine(int l)
|
void
|
setLineLast(int lineLast)
|
void
|
setText(java.lang.String s)
set the source token text |
java.lang.String
|
toString()
|
Methods inherited from class antlr.Token | |
---|---|
antlr.Token#getText(), antlr.Token#setText(java.lang.String), antlr.Token#getColumn(), antlr.Token#getLine(), antlr.Token#setLine(int), antlr.Token#setColumn(int), antlr.Token#setFilename(java.lang.String), antlr.Token#getFilename(), antlr.Token#toString(), antlr.Token#getType(), antlr.Token#setType(int), antlr.Token#wait(long, int), antlr.Token#wait(long), antlr.Token#wait(), antlr.Token#equals(java.lang.Object), antlr.Token#hashCode(), antlr.Token#getClass(), antlr.Token#notify(), antlr.Token#notifyAll() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected int col
protected int colLast
protected int line
protected int lineLast
protected java.lang.String text
Constructor Detail |
---|
public GroovySourceToken(int t)
t
- the type
Method Detail |
---|
public int getColumn()
public int getColumnLast()
public int getLine()
public int getLineLast()
public java.lang.String getText()
public void setColumn(int c)
public void setColumnLast(int colLast)
public void setLine(int l)
public void setLineLast(int lineLast)
public void setText(java.lang.String s)
s
- the text
public java.lang.String toString()
Groovy Documentation