|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.sql.parser.SqlParser
A SqlParser
parses a SQL statement.
Field Summary | |
private Parser |
parser
|
Constructor Summary | |
SqlParser(Reader reader)
Creats a SqlParser which reads input from a reader. |
|
SqlParser(String s)
Creats a SqlParser which reads input from a string. |
Method Summary | |
SqlNode |
parseExpression()
Parses a SQL expression. |
SqlNode |
parseQuery()
Parses a SELECT statement. |
SqlNode |
parseStmt()
Parses an SQL statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final Parser parser
Constructor Detail |
public SqlParser(String s)
SqlParser
which reads input from a string.
public SqlParser(Reader reader)
SqlParser
which reads input from a reader.
Method Detail |
public SqlNode parseExpression() throws ParseException
ParseException
- if there is a parse errorpublic SqlNode parseQuery() throws ParseException
SELECT
statement.
SqlSelect
for a regular
SELECT
statement; a SqlBinaryOperator
for a
UNION
, INTERSECT
, or
EXCEPT
.
ParseException
- if there is a parse errorpublic SqlNode parseStmt() throws ParseException
ParseException
- if there is a parse error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |