|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.sqlparser.SqlScanner
public final class SqlScanner
Simple SQL Scanner.
| Constructor Summary | |
|---|---|
SqlScanner(InputStream input)
create a new SQL Scanner. |
|
| Method Summary | |
|---|---|
int |
getColumn()
Returns the offset. |
int |
getLine()
Returns the line. |
boolean |
isSetReportWhitespace()
Returns the reportWhitespace. |
static void |
main(String[] args)
Simple SQL Scanner that reads the file given at argument 1 and dumps the tokens to stderr and the content on stdout. |
Token |
nextToken()
This is just a wrapper around the real nextToken() method for logging. |
void |
setReportWhitespace(boolean reportWhitespace)
Sets the reportWhitespace to given reportWhitespace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlScanner(InputStream input)
input - the input stream to read SQL data from| Method Detail |
|---|
public boolean isSetReportWhitespace()
public void setReportWhitespace(boolean reportWhitespace)
reportWhitespace.
setReportWhitespace in interface ScannerInterfacereportWhitespace - The reportWhitespace to set.public int getLine()
getLine in interface ScannerInterfacepublic int getColumn()
getColumn in interface ScannerInterface
public Token nextToken()
throws ParseException
nextToken in interface ScannerInterfaceParseException - if a syntax error is encounteredScannerInterface.nextToken()
public static void main(String[] args)
throws Exception
stderr and the content on stdout.
args - command line arguments
Exception - An error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||