|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.engine.sql.Token
public class Token
A single token returned by SQLScanner. This class is used internally by SQLScanner and you should probably never need to create objects of this class unless you are working on SQLScanner.
Constructor Summary | |
---|---|
Token(String str)
Creates a new token without positioning. |
|
Token(String str,
int line,
int col)
Creates a new token with positioning settings. |
Method Summary | |
---|---|
int |
getCol()
Get the column number of this token. |
int |
getLine()
Get the line number of this token. |
String |
getStr()
Returns the string representation of this token. |
String |
toString()
The same as getStr() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Token(String str)
str
- string representationpublic Token(String str, int line, int col)
str
- string representationline
- line numbercol
- column numberMethod Detail |
---|
public String getStr()
public int getLine()
public int getCol()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |