|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.engine.sql.SQLScanner
A simple Scanner implementation that scans an sql file into usable tokens. Used by SQLToAppData.
Field Summary | |
private static java.lang.String |
alfa
|
private static java.lang.String |
alfanum
|
private int |
chr
|
private int |
col
|
private static char |
commentDash
|
private static char |
commentPound
|
private static char |
commentSlash
|
private static char |
commentStar
|
private java.io.Reader |
in
|
private int |
line
|
private static java.lang.String |
numer
|
private static java.lang.String |
special
|
private java.lang.String |
token
|
private java.util.List |
tokens
|
private static java.lang.String |
white
|
Constructor Summary | |
SQLScanner()
Creates a new scanner with no Reader |
|
SQLScanner(java.io.Reader input)
Creates a new scanner with an Input Reader |
Method Summary | |
private void |
readChar()
Reads the next character and increments the line and column counters. |
java.util.List |
scan()
Scan the input Reader and returns a list of tokens. |
private void |
scanIdentifier()
Scans an identifier. |
private void |
scanNegativeIdentifier()
Scans an identifier which had started with the negative sign. |
void |
setInput(java.io.Reader input)
Set the Input |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String white
private static final java.lang.String alfa
private static final java.lang.String numer
private static final java.lang.String alfanum
private static final java.lang.String special
private static final char commentPound
private static final char commentSlash
private static final char commentStar
private static final char commentDash
private java.io.Reader in
private int chr
private java.lang.String token
private java.util.List tokens
private int line
private int col
Constructor Detail |
public SQLScanner()
public SQLScanner(java.io.Reader input)
Method Detail |
public void setInput(java.io.Reader input)
private void readChar() throws java.io.IOException
java.io.IOException
private void scanIdentifier() throws java.io.IOException
java.io.IOException
private void scanNegativeIdentifier() throws java.io.IOException
java.io.IOException
public java.util.List scan() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |