|
|||||||||
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 typeMethod Detail |
---|
public int getLine()
SourceInfo
getLine
in interface SourceInfo
getLine
in class Token
public String getText()
getText
in class Token
public void setLine(int l)
SourceInfo
setLine
in interface SourceInfo
setLine
in class Token
l
- the linepublic void setText(String s)
setText
in class Token
s
- the textpublic String toString()
toString
in class Token
public int getColumn()
SourceInfo
getColumn
in interface SourceInfo
getColumn
in class Token
public void setColumn(int c)
SourceInfo
setColumn
in interface SourceInfo
setColumn
in class Token
c
- the columnpublic int getLineLast()
SourceInfo
getLineLast
in interface SourceInfo
public void setLineLast(int lineLast)
SourceInfo
setLineLast
in interface SourceInfo
lineLast
- the linepublic int getColumnLast()
SourceInfo
getColumnLast
in interface SourceInfo
public void setColumnLast(int colLast)
SourceInfo
setColumnLast
in interface SourceInfo
colLast
- 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 |