|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectantlr.Token
org.codehaus.groovy.antlr.GroovySourceToken
public class GroovySourceToken
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 antlr.Token |
|---|
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type |
| Constructor Summary | |
|---|---|
GroovySourceToken(int t)
Constructor using a token type |
|
| Method Summary | |
|---|---|
int |
getColumn()
get starting column |
int |
getColumnLast()
get ending column |
int |
getLine()
get start line |
int |
getLineLast()
get ending line |
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(String s)
set the source token text |
String |
toString()
|
| Methods inherited from class antlr.Token |
|---|
getFilename, getType, setFilename, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int line
protected String text
protected int col
protected int lineLast
protected int colLast
| Constructor Detail |
|---|
public GroovySourceToken(int t)
t - the type| Method Detail |
|---|
public int getLine()
SourceInfo
getLine in interface SourceInfogetLine in class Tokenpublic String getText()
getText in class Tokenpublic void setLine(int l)
SourceInfo
setLine in interface SourceInfosetLine in class Tokenl - the linepublic void setText(String s)
setText in class Tokens - the textpublic String toString()
toString in class Tokenpublic int getColumn()
SourceInfo
getColumn in interface SourceInfogetColumn in class Tokenpublic void setColumn(int c)
SourceInfo
setColumn in interface SourceInfosetColumn in class Tokenc - the columnpublic int getLineLast()
SourceInfo
getLineLast in interface SourceInfopublic void setLineLast(int lineLast)
SourceInfo
setLineLast in interface SourceInfolineLast - the linepublic int getColumnLast()
SourceInfo
getColumnLast in interface SourceInfopublic void setColumnLast(int colLast)
SourceInfo
setColumnLast in interface SourceInfocolLast - the column
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||