| java.lang.Object org.apache.torque.engine.sql.Token
Token | public class Token (Code) | | 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.
author: Leon Messerschmidt version: $Id: Token.java 473814 2006-11-11 22:30:30Z tv $ |
Constructor Summary | |
public | Token(String str) Creates a new token without positioning. | public | Token(String str, int line, int col) Creates a new token with positioning settings. |
Method Summary | |
public int | getCol() Get the column number of this token. | public int | getLine() Get the line number of this token. | public String | getStr() Returns the string representation of this token. | public String | toString() |
Token | public Token(String str)(Code) | | Creates a new token without positioning.
Parameters: str - string representation |
Token | public Token(String str, int line, int col)(Code) | | Creates a new token with positioning settings.
Parameters: str - string representation Parameters: line - line number Parameters: col - column number |
getCol | public int getCol()(Code) | | Get the column number of this token.
the column number |
getLine | public int getLine()(Code) | | Get the line number of this token.
the line number |
getStr | public String getStr()(Code) | | Returns the string representation of this token.
the string representation |
toString | public String toString()(Code) | | The same as getStr()
the string representation |
|
|