org.apache.torque.engine.sql
Class Token

java.lang.Object
  extended byorg.apache.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: Token.java,v 1.2 2002/05/07 18:24:43 mpoeschl Exp $
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, wait, wait, wait
 

Field Detail

str

private java.lang.String str

line

private int line

col

private int col
Constructor Detail

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.

Method Detail

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()



Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.