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

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

Deprecated. use turbine-torque

public class SQLScanner
extends java.lang.Object

A simple Scanner implementation that scans an sql file into usable tokens. Used by SQLToAppData.

Version:
$Id: SQLScanner.java,v 1.2 2002/02/16 19:40:37 mpoeschl Exp $
Author:
Leon Messerschmidt, Jon S. Stevens

Field Summary
private static java.lang.String alfa
          Deprecated.  
private static java.lang.String alfanum
          Deprecated.  
private  int chr
          Deprecated.  
private  int col
          Deprecated.  
private static char commentDash
          Deprecated.  
private static char commentPound
          Deprecated.  
private static char commentSlash
          Deprecated.  
private static char commentStar
          Deprecated.  
private  java.io.Reader in
          Deprecated.  
private  int line
          Deprecated.  
private static java.lang.String numer
          Deprecated.  
private static java.lang.String special
          Deprecated.  
private  java.lang.String token
          Deprecated.  
private  java.util.Vector tokens
          Deprecated.  
private static java.lang.String white
          Deprecated.  
 
Constructor Summary
SQLScanner()
          Deprecated. Creates a new scanner with no Reader
SQLScanner(java.io.Reader input)
          Deprecated. Creates a new scanner with an Input Reader
 
Method Summary
private  void readChar()
          Deprecated. Reads the next character and increments the line and column counters.
 java.util.Vector scan()
          Deprecated. Scan the input Reader and returns a list of tokens.
private  void scanIdentifier()
          Deprecated. Scans an identifier.
 void setInput(java.io.Reader input)
          Deprecated. Set the Input
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

white

private static final java.lang.String white
Deprecated. 

alfa

private static final java.lang.String alfa
Deprecated. 

numer

private static final java.lang.String numer
Deprecated. 

alfanum

private static final java.lang.String alfanum
Deprecated. 

special

private static final java.lang.String special
Deprecated. 

commentPound

private static final char commentPound
Deprecated. 

commentSlash

private static final char commentSlash
Deprecated. 

commentStar

private static final char commentStar
Deprecated. 

commentDash

private static final char commentDash
Deprecated. 

in

private java.io.Reader in
Deprecated. 

chr

private int chr
Deprecated. 

token

private java.lang.String token
Deprecated. 

tokens

private java.util.Vector tokens
Deprecated. 

line

private int line
Deprecated. 

col

private int col
Deprecated. 
Constructor Detail

SQLScanner

public SQLScanner()
Deprecated. 
Creates a new scanner with no Reader

SQLScanner

public SQLScanner(java.io.Reader input)
Deprecated. 
Creates a new scanner with an Input Reader
Method Detail

setInput

public void setInput(java.io.Reader input)
Deprecated. 
Set the Input

readChar

private void readChar()
               throws java.io.IOException
Deprecated. 
Reads the next character and increments the line and column counters.

scanIdentifier

private void scanIdentifier()
                     throws java.io.IOException
Deprecated. 
Scans an identifier.

scan

public java.util.Vector scan()
                      throws java.io.IOException
Deprecated. 
Scan the input Reader and returns a list of tokens.


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