| org.apache.derby.iapi.sql.compile.Parser
All known Subclasses: org.apache.derby.impl.sql.compile.ParserImpl,
Parser | public interface Parser (Code) | | The Parser interface is intended to work with Jack-generated parsers (now JavaCC).
We will specify "STATIC=false" when building Jack parsers - this specifies
that the generated classes will not be static, which will allow there to be
more than one parser (this is necessary in a multi-threaded server).
Non-static parsers do not have to be re-initialized every time they are
used (unlike static parsers, for which one must call ReInit() between calls
to the parser).
author: Jeff Lichtman |
getSQLtext | public String getSQLtext()(Code) | | Returns the current SQL text string that is being parsed.
Current SQL text string. |
parseStatement | public QueryTreeNode parseStatement(String statementSQLText, Object[] paramDefaults) throws StandardException(Code) | | Parses the given statement and returns a query tree. The query tree
at this point is a simple syntactic translation of the statement.
No binding will have taken place, and no decisions will have been
made regarding processing strategy.
Parameters: statementSQLText - The Statement to parse. Parameters: paramDefaults - Parameter defaults A new QueryTree representing the syntax of the Statement exception: StandardException - Thrown on failure |
|
|