public class GroovySourceToken extends antlr.Token
This is a Token sub class to track line information
Fields inherited from class | Fields |
---|---|
class antlr.Token |
MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, INVALID_TYPE, EOF_TYPE, SKIP, badToken |
Constructor and description |
---|
GroovySourceToken
(int t) Constructor using a token type |
Type Params | Return Type | Name and description |
---|---|---|
|
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 | Name |
---|---|
class antlr.Token |
antlr.Token#getText(), antlr.Token#setText(java.lang.String), antlr.Token#toString(), antlr.Token#getType(), antlr.Token#setType(int), antlr.Token#getFilename(), antlr.Token#getLine(), antlr.Token#setFilename(java.lang.String), antlr.Token#getColumn(), antlr.Token#setColumn(int), antlr.Token#setLine(int), antlr.Token#wait(long), antlr.Token#wait(long, int), antlr.Token#wait(), antlr.Token#equals(java.lang.Object), antlr.Token#hashCode(), antlr.Token#getClass(), antlr.Token#notify(), antlr.Token#notifyAll() |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor using a token type
t
- the typeget the source token text
set the source token text
s
- the textCopyright © 2003-2019 The Apache Software Foundation. All rights reserved.