|
Groovy 2.2.0 | |||||||
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 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 String |
text
|
Fields inherited from class 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()
|
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(String s)
set the source token text |
String
|
toString()
|
Methods inherited from class Token | |
---|---|
setText, getColumn, getText, setType, getLine, getFilename, setLine, setFilename, setColumn, toString, getType, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected int col
protected int colLast
protected int line
protected int lineLast
protected 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 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(String s)
s
- the text
public String toString()
Copyright © 2003-2013 The Codehaus. All rights reserved.