public class CCJSqlParser extends java.lang.Object implements CCJSqlParserTreeConstants, CCJSqlParserConstants
限定符和类型 | 字段和说明 |
---|---|
Token |
jj_nt
Next token.
|
protected JJTCCJSqlParserState |
jjtree |
Token |
token
Current token.
|
CCJSqlParserTokenManager |
token_source
Generated Token Manager.
|
JJTADDITIVEEXPRESSION, JJTALIAS, JJTALIST, JJTALLCOMPARISONEXPRESSION, JJTALLTABLECOLUMNS, JJTALTEREXPRESSION, JJTALTEREXPRESSIONCOLUMNDATATYPE, JJTALTEREXPRESSIONCONSTRAINTSTATE, JJTALTERTABLE, JJTALTERVIEW, JJTANALYTICEXPRESSION, JJTANDEXPRESSION, JJTANYCOMPARISONEXPRESSION, JJTBETWEEN, JJTBITWISEANDOR, JJTBITWISEXOR, JJTCASEWHENEXPRESSION, JJTCASTEXPRESSION, JJTCOLDATATYPE, JJTCOLUMN, JJTCOLUMNSNAMESLIST, JJTCOMMIT, JJTCOMPARISONITEM, JJTCONCATEXPRESSION, JJTCONDITION, JJTCREATEINDEX, JJTCREATEPARAMETER, JJTCREATETABLE, JJTCREATEVIEW, JJTDATETIMELITERALEXPRESSION, JJTDELETE, JJTDROP, JJTERROR_SKIPTO, JJTEXECUTE, JJTEXISTSEXPRESSION, JJTEXPRESSION, JJTEXPRESSIONLISTITEM, JJTEXTRACTEXPRESSION, JJTFETCH, JJTFIRST, JJTFROMITEM, JJTFUNCTION, JJTFUNCTIONITEM, JJTGETORACLEHINT, JJTGROUPBYCOLUMNREFERENCES, JJTHAVING, JJTIDENTIFIER, JJTINEXPRESSION, JJTINSERT, JJTINTERVALEXPRESSION, JJTINTOCLAUSE, JJTISNULLEXPRESSION, JJTJDBCNAMEDPARAMETER, JJTJOINEREXPRESSION, JJTJOINSLIST, JJTJSONEXPRESSION, JJTKEEPEXPRESSION, JJTLATERALSUBSELECT, JJTLIKEEXPRESSION, JJTLIMITWITHOFFSET, JJTLISTEXPRESSIONITEM, JJTMERGE, JJTMERGEINSERTCLAUSE, JJTMERGEUPDATECLAUSE, JJTMULTIPLICATIVEEXPRESSION, JJTMYSQLGROUPCONCAT, JJTMYSQLINDEXHINT, jjtNodeName, JJTNUMERICBIND, JJTOFFSET, JJTORACLEHIERARCHICALQUERYCLAUSE, JJTORDERBYELEMENT, JJTORDERBYELEMENTS, JJTOREXPRESSION, JJTPIVOT, JJTPIVOTFORCOLUMNS, JJTPIVOTFUNCTIONITEMS, JJTPIVOTMULTIINITEMS, JJTPIVOTSINGLEINITEMS, JJTPIVOTXML, JJTPLAINLIMIT, JJTPLAINSELECT, JJTPRIMARYEXPRESSION, JJTREGULARCONDITION, JJTRELOBJECTNAME, JJTRELOBJECTNAMEEXT, JJTRELOBJECTNAMEEXT2, JJTREPLACE, JJTROWCONSTRUCTOR, JJTSELECT, JJTSELECTBODY, JJTSELECTEXPRESSIONITEM, JJTSELECTITEM, JJTSELECTITEMSLIST, JJTSET, JJTSETOPERATIONLIST, JJTSIMPLEEXPRESSION, JJTSIMPLEEXPRESSIONLIST, JJTSIMPLEEXPRESSIONLISTATLEASTTWOITEMS, JJTSINGLESTATEMENT, JJTSKIP, JJTSQLCONDITION, JJTSQLEXPRESSIONLIST, JJTSTATEMENT, JJTSTATEMENTS, JJTSUBJOIN, JJTSUBSELECT, JJTTABLE, JJTTABLEFUNCTION, JJTTABLEWITHALIAS, JJTTOP, JJTTRUNCATE, JJTUPDATE, JJTUPSERT, JJTUSERVARIABLE, JJTVALUESLIST, JJTWAIT, JJTWHENTHENSEARCHCONDITION, JJTWHENTHENVALUE, JJTWHERECLAUSE, JJTWINDOWELEMENT, JJTWINDOWOFFSET, JJTWITHINGROUPEXPRESSION, JJTWITHITEM, JJTWITHLIST
DEFAULT, DIGIT, DT_ZONE, EOF, ESC, HEX_VALUE, K_ACTION, K_ADD, K_ALL, K_ALTER, K_AND, K_ANY, K_AS, K_ASC, K_BEGIN, K_BETWEEN, K_BINARY, K_BIT, K_BY, K_CASCADE, K_CASE, K_CAST, K_CHARACTER, K_CHECK, K_COLUMN, K_COMMIT, K_CONNECT, K_CONSTRAINT, K_CREATE, K_CROSS, K_CURRENT, K_DATETIMELITERAL, K_DEFERRABLE, K_DELAYED, K_DELETE, K_DESC, K_DISABLE, K_DISTINCT, K_DO, K_DOUBLE, K_DROP, K_DUPLICATE, K_ELSE, K_ENABLE, K_END, K_ESCAPE, K_EXCEPT, K_EXCLUDE, K_EXEC, K_EXECUTE, K_EXISTS, K_EXTRACT, K_FETCH, K_FIRST, K_FOLLOWING, K_FOR, K_FORCE, K_FOREIGN, K_FROM, K_FULL, K_FULLTEXT, K_GROUP, K_GROUP_CONCAT, K_HAVING, K_HIGH_PRIORITY, K_IF, K_IGNORE, K_ILIKE, K_IN, K_INDEX, K_INNER, K_INSERT, K_INTERSECT, K_INTERVAL, K_INTO, K_IS, K_JOIN, K_KEEP, K_KEY, K_LAST, K_LATERAL, K_LEFT, K_LIKE, K_LIMIT, K_LOW_PRIORITY, K_MATCHED, K_MATERIALIZED, K_MERGE, K_MINUS, K_MODIFY, K_NATURAL, K_NEXT, K_NO, K_NOCYCLE, K_NOT, K_NOVALIDATE, K_NULL, K_NULLS, K_OF, K_OFFSET, K_ON, K_ONLY, K_OPEN, K_OR, K_ORDER, K_OUTER, K_OVER, K_PARTITION, K_PERCENT, K_PIVOT, K_PRECEDING, K_PRECISION, K_PRIMARY, K_PRIOR, K_RANGE, K_RECURSIVE, K_REFERENCES, K_REGEXP, K_REPLACE, K_RESTRICT, K_RETURNING, K_RIGHT, K_ROW, K_ROWS, K_SELECT, K_SEMI, K_SEPARATOR, K_SET, K_SIBLINGS, K_SKIP, K_SOME, K_START, K_TABLE, K_TABLESPACE, K_THEN, K_TIME_KEY_EXPR, K_TOP, K_TRUNCATE, K_UNBOUNDED, K_UNION, K_UNIQUE, K_UNLOGGED, K_UPDATE, K_UPSERT, K_USE, K_USING, K_VALIDATE, K_VALUE, K_VALUES, K_VARYING, K_VIEW, K_WAIT, K_WHEN, K_WHERE, K_WITH, K_WITHIN, K_WITHOUT, K_XML, K_ZONE, LETTER, LINE_COMMENT, MULTI_LINE_COMMENT, OP_GREATERTHANEQUALS, OP_MINORTHANEQUALS, OP_NOTEQUALSBANG, OP_NOTEQUALSSTANDARD, PART_LETTER, S_CHAR_LITERAL, S_DOUBLE, S_HEX, S_IDENTIFIER, S_LONG, S_QUOTED_IDENTIFIER, ST_SEMICOLON, tokenImage, WHITESPACE
构造器和说明 |
---|
CCJSqlParser(CCJSqlParserTokenManager tm)
Constructor with generated Token Manager.
|
CCJSqlParser(java.io.InputStream stream)
Constructor with InputStream.
|
CCJSqlParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
CCJSqlParser(java.io.Reader stream)
Constructor.
|
protected JJTCCJSqlParserState jjtree
public CCJSqlParserTokenManager token_source
public Token token
public Token jj_nt
public CCJSqlParser(java.io.InputStream stream)
public CCJSqlParser(java.io.InputStream stream, java.lang.String encoding)
public CCJSqlParser(java.io.Reader stream)
public CCJSqlParser(CCJSqlParserTokenManager tm)
public Node getASTRoot()
public void setErrorRecovery(boolean errorRecovery)
public java.util.List<ParseException> getParseErrors()
public final Statement Statement() throws ParseException
ParseException
public final Statement SingleStatement() throws ParseException
ParseException
public final Statements Statements() throws ParseException
ParseException
public final SetStatement Set() throws ParseException
ParseException
public final Update Update() throws ParseException
ParseException
public final Replace Replace() throws ParseException
ParseException
public final java.util.List<SelectExpressionItem> ListExpressionItem() throws ParseException
ParseException
public final Insert Insert() throws ParseException
ParseException
public final Upsert Upsert() throws ParseException
ParseException
public final Delete Delete() throws ParseException
ParseException
public final Statement Merge() throws ParseException
ParseException
public final MergeUpdate MergeUpdateClause() throws ParseException
ParseException
public final MergeInsert MergeInsertClause() throws ParseException
ParseException
public final Column Column() throws ParseException
ParseException
public final java.lang.String RelObjectName() throws ParseException
ParseException
public final java.lang.String RelObjectNameExt() throws ParseException
ParseException
public final java.lang.String RelObjectNameExt2() throws ParseException
ParseException
public final Table Table() throws ParseException
ParseException
public final Table TableWithAlias() throws ParseException
ParseException
public final Select Select() throws ParseException
ParseException
public final SelectBody SelectBody() throws ParseException
ParseException
public final PlainSelect PlainSelect() throws ParseException
ParseException
public final SelectBody SetOperationList() throws ParseException
ParseException
public final java.util.List<WithItem> WithList() throws ParseException
ParseException
public final WithItem WithItem() throws ParseException
ParseException
public final java.util.List<SelectItem> SelectItemsList() throws ParseException
ParseException
public final SelectExpressionItem SelectExpressionItem() throws ParseException
ParseException
public final SelectItem SelectItem() throws ParseException
ParseException
public final AllTableColumns AllTableColumns() throws ParseException
ParseException
public final Alias Alias() throws ParseException
ParseException
public final MySQLIndexHint MySQLIndexHint() throws ParseException
ParseException
public final java.lang.String Identifier() throws ParseException
ParseException
public final FunctionItem FunctionItem() throws ParseException
ParseException
public final java.util.List<Column> PivotForColumns() throws ParseException
ParseException
public final java.util.List<FunctionItem> PivotFunctionItems() throws ParseException
ParseException
public final java.util.List<SelectExpressionItem> PivotSingleInItems() throws ParseException
ParseException
public final ExpressionListItem ExpressionListItem() throws ParseException
ParseException
public final java.util.List<ExpressionListItem> PivotMultiInItems() throws ParseException
ParseException
public final Pivot Pivot() throws ParseException
ParseException
public final PivotXml PivotXml() throws ParseException
ParseException
public final java.util.List<Table> IntoClause() throws ParseException
ParseException
public final FromItem FromItem() throws ParseException
ParseException
public final FromItem ValuesList() throws ParseException
ParseException
public final LateralSubSelect LateralSubSelect() throws ParseException
ParseException
public final FromItem SubJoin() throws ParseException
ParseException
public final java.util.List JoinsList() throws ParseException
ParseException
public final Join JoinerExpression() throws ParseException
ParseException
public final Expression WhereClause() throws ParseException
ParseException
public final OracleHierarchicalExpression OracleHierarchicalQueryClause() throws ParseException
ParseException
public final java.util.List<Expression> GroupByColumnReferences() throws ParseException
ParseException
public final Expression Having() throws ParseException
ParseException
public final java.util.List<OrderByElement> OrderByElements() throws ParseException
ParseException
public final OrderByElement OrderByElement() throws ParseException
ParseException
public final Limit LimitWithOffset() throws ParseException
ParseException
public final Limit PlainLimit() throws ParseException
ParseException
public final Offset Offset() throws ParseException
ParseException
public final Fetch Fetch() throws ParseException
ParseException
public final Top Top() throws ParseException
ParseException
public final Skip Skip() throws ParseException
ParseException
public final First First() throws ParseException
ParseException
public final Expression Expression() throws ParseException
ParseException
public final Expression OrExpression() throws ParseException
ParseException
public final Expression AndExpression() throws ParseException
ParseException
public final Expression Condition() throws ParseException
ParseException
public final Expression RegularCondition() throws ParseException
ParseException
public final Expression SQLCondition() throws ParseException
ParseException
public final Expression InExpression() throws ParseException
ParseException
public final Expression Between() throws ParseException
ParseException
public final Expression LikeExpression() throws ParseException
ParseException
public final Expression IsNullExpression() throws ParseException
ParseException
public final Expression ExistsExpression() throws ParseException
ParseException
public final ExpressionList SQLExpressionList() throws ParseException
ParseException
public final ExpressionList SimpleExpressionList() throws ParseException
ParseException
public final ExpressionList SimpleExpressionListAtLeastTwoItems() throws ParseException
ParseException
public final Expression ComparisonItem() throws ParseException
ParseException
public final Expression AllComparisonExpression() throws ParseException
ParseException
public final Expression AnyComparisonExpression() throws ParseException
ParseException
public final Expression SimpleExpression() throws ParseException
ParseException
public final Expression ConcatExpression() throws ParseException
ParseException
public final Expression BitwiseAndOr() throws ParseException
ParseException
public final Expression AdditiveExpression() throws ParseException
ParseException
public final Expression MultiplicativeExpression() throws ParseException
ParseException
public final Expression BitwiseXor() throws ParseException
ParseException
public final Expression PrimaryExpression() throws ParseException
ParseException
public final JdbcNamedParameter JdbcNamedParameter() throws ParseException
ParseException
public final UserVariable UserVariable() throws ParseException
ParseException
public final NumericBind NumericBind() throws ParseException
ParseException
public final DateTimeLiteralExpression DateTimeLiteralExpression() throws ParseException
ParseException
public final JsonExpression JsonExpression() throws ParseException
ParseException
public final IntervalExpression IntervalExpression() throws ParseException
ParseException
public final WithinGroupExpression WithinGroupExpression() throws ParseException
ParseException
public final KeepExpression KeepExpression() throws ParseException
ParseException
public final AnalyticExpression AnalyticExpression() throws ParseException
ParseException
public final WindowElement WindowElement() throws ParseException
ParseException
public final WindowOffset WindowOffset() throws ParseException
ParseException
public final ExtractExpression ExtractExpression() throws ParseException
ParseException
public final CastExpression CastExpression() throws ParseException
ParseException
public final Expression CaseWhenExpression() throws ParseException
ParseException
public final WhenClause WhenThenSearchCondition() throws ParseException
ParseException
public final WhenClause WhenThenValue() throws ParseException
ParseException
public final RowConstructor RowConstructor() throws ParseException
ParseException
public final Execute Execute() throws ParseException
ParseException
public final Function Function() throws ParseException
ParseException
public final MySQLGroupConcat MySQLGroupConcat() throws ParseException
ParseException
public final TableFunction TableFunction() throws ParseException
ParseException
public final SubSelect SubSelect() throws ParseException
ParseException
public final CreateIndex CreateIndex() throws ParseException
ParseException
public final CreateTable CreateTable() throws ParseException
ParseException
public final ColDataType ColDataType() throws ParseException
ParseException
public final CreateView CreateView() throws ParseException
ParseException
public final AlterView AlterView() throws ParseException
ParseException
public final java.util.List<java.lang.String> CreateParameter() throws ParseException
ParseException
public final java.lang.String AList() throws ParseException
ParseException
public final java.util.List<java.lang.String> ColumnsNamesList() throws ParseException
ParseException
public final Drop Drop() throws ParseException
ParseException
public final Truncate Truncate() throws ParseException
ParseException
public final AlterExpression.ColumnDataType AlterExpressionColumnDataType() throws ParseException
ParseException
public final java.util.List<ConstraintState> AlterExpressionConstraintState() throws ParseException
ParseException
public final AlterExpression AlterExpression() throws ParseException
ParseException
public final Alter AlterTable() throws ParseException
ParseException
public final Wait Wait() throws ParseException
ParseException
public final Commit Commit() throws ParseException
ParseException
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public void ReInit(CCJSqlParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()