org.apache.turbine.torque.engine.sql
Class Token
java.lang.Object
|
+--org.apache.turbine.torque.engine.sql.Token
- public class Token
- extends java.lang.Object
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.
- Version:
- $Id$
- Author:
- Leon Messerschmidt
Field Summary |
private int |
col
|
private int |
line
|
private java.lang.String |
str
|
Constructor Summary |
Token(java.lang.String str)
Creates a new token without positioning. |
Token(java.lang.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. |
java.lang.String |
getStr()
Returns the string representation of this token. |
java.lang.String |
toString()
The same as getStr() |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
str
private java.lang.String str
line
private int line
col
private int col
Token
public Token(java.lang.String str)
- Creates a new token without positioning.
Token
public Token(java.lang.String str,
int line,
int col)
- Creates a new token with positioning settings.
getStr
public java.lang.String getStr()
- Returns the string representation of this token.
getLine
public int getLine()
- Get the line number of this token.
getCol
public int getCol()
- Get the column number of this token.
toString
public java.lang.String toString()
- The same as getStr()
- Overrides:
toString
in class java.lang.Object
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.