📄 parser.java
字号:
/* Derby - Class org.apache.derby.iapi.sql.compile.Parser Copyright 1997, 2004 The Apache Software Foundation or its licensors, as applicable. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */package org.apache.derby.iapi.sql.compile;import org.apache.derby.iapi.error.StandardException;/* Strictly speaking we shouldn't import classes under the impl hierarchy here * but this is work in progress. * manish - Wed Mar 28 13:05:19 PST 2001 */import org.apache.derby.impl.sql.compile.QueryTreeNode;/** * 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 */public interface Parser{ /** * 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. * * @param statement The Statement to parse. * @param paramDefaults Parameter defaults * @return A new QueryTree representing the syntax of the Statement * * @exception StandardException Thrown on failure */ public QueryTreeNode parseStatement(String statementSQLText, Object[] paramDefaults) throws StandardException; public QueryTreeNode parseStatement(String statementSQLText) throws StandardException; /** * Returns the current SQL text string that is being parsed. * * @return Current SQL text string. * */ public String getSQLtext();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -