|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.parser.SqlParser
public class SqlParser
A SqlParser
parses a SQL statement.
Field Summary | |
---|---|
private String |
originalInput
|
private SqlParserImpl |
parser
|
Constructor Summary | |
---|---|
SqlParser(Reader reader)
Creates a SqlParser which reads input from a reader. |
|
SqlParser(String s)
Creates a SqlParser which reads input from a string. |
Method Summary | |
---|---|
SqlParserImpl |
getParserImpl()
Returns the underlying generated parser. |
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 SqlParserImpl parser
private String originalInput
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 SqlParseException
SqlParseException
- if there is a parse errorpublic SqlNode parseQuery() throws SqlParseException
SELECT
statement.
SqlSelect
for a regular
SELECT
statement; a SqlBinaryOperator
for a UNION
, INTERSECT
, or EXCEPT
.
SqlParseException
- if there is a parse errorpublic SqlNode parseStmt() throws SqlParseException
SqlParseException
- if there is a parse errorpublic SqlParserImpl getParserImpl()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |