org.apache.turbine.torque.engine.sql
Class Token

java.lang.Object
  |
  +--org.apache.turbine.torque.engine.sql.Token

Deprecated. use turbine-torque

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: Token.java,v 1.2 2002/02/16 19:40:37 mpoeschl Exp $
Author:
Leon Messerschmidt

Field Summary
private  int col
          Deprecated.  
private  int line
          Deprecated.  
private  java.lang.String str
          Deprecated.  
 
Constructor Summary
Token(java.lang.String str)
          Deprecated. Creates a new token without positioning.
Token(java.lang.String str, int line, int col)
          Deprecated. Creates a new token with positioning settings.
 
Method Summary
 int getCol()
          Deprecated. Get the column number of this token.
 int getLine()
          Deprecated. Get the line number of this token.
 java.lang.String getStr()
          Deprecated. Returns the string representation of this token.
 java.lang.String toString()
          Deprecated. The same as getStr()
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

str

private java.lang.String str
Deprecated. 

line

private int line
Deprecated. 

col

private int col
Deprecated. 
Constructor Detail

Token

public Token(java.lang.String str)
Deprecated. 
Creates a new token without positioning.

Token

public Token(java.lang.String str,
             int line,
             int col)
Deprecated. 
Creates a new token with positioning settings.
Method Detail

getStr

public java.lang.String getStr()
Deprecated. 
Returns the string representation of this token.

getLine

public int getLine()
Deprecated. 
Get the line number of this token.

getCol

public int getCol()
Deprecated. 
Get the column number of this token.

toString

public java.lang.String toString()
Deprecated. 
The same as getStr()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.