public class GroovySourceToken extends Token implements SourceInfo
This is a Token sub class to track line information
Fields inherited from class | Fields |
---|---|
interface Token |
INVALID_TYPE, EPSILON, MIN_USER_TOKEN_TYPE, EOF, DEFAULT_CHANNEL, HIDDEN_CHANNEL, MIN_USER_CHANNEL_VALUE |
Constructor and description |
---|
GroovySourceToken
(int t) Constructor using a token type |
Type Params | Return Type | Name and description |
---|---|---|
|
public int |
getColumn() |
|
public int |
getColumnLast() |
|
public int |
getLine() |
|
public int |
getLineLast() |
|
public String |
getText() get the source token text |
|
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) set the source token text |
|
public String |
toString() |
Methods inherited from class | Name |
---|---|
interface Token |
getType, getInputStream, getChannel, getText, getCharPositionInLine, getTokenSource, getTokenIndex, getLine, getStopIndex, getStartIndex |
Constructor using a token type
t
- the typeget the source token text
set the source token text
s
- the textCopyright © 2003-2021 The Apache Software Foundation. All rights reserved.