public class AxionSqlParser extends java.lang.Object implements Parser, AxionSqlParserConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
AxionSqlParserTokenManager |
token_source
Generated Token Manager.
|
ACTION, ADD, ALL, ALTER, ALWAYS, AND, AS, ASC, ASSIGN, ASTERISK, BEGIN, BETWEEN, BIGINT, BINARY, BIT, BLOB, BLOCK_COMMENT, BOOLEAN, BOTH, BY, BYTE, CASCADE, CASE, CAST, CHAR, CHARACTER, CHECK, CLOB, CLOSEPAREN, COLUMN, COMMA, CONCAT, CONSTRAINT, CREATE, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, CYCLE, DATA, DATABASE, DATE, DAY, DEC, DECIMAL, DEFAULT, DEFAULT_, DEFERRABLE, DEFERRED, DEFRAG, DELETE, DESC, DIGIT, DISTINCT, DOT, DOUBLE, DROP, ELSE, END, END_QUOTED_IDENTIFIER, EOF, EQUAL, ESCAPE, EXCEPTION, EXISTS, EXPLAIN, EXPONENT, EXTERNAL, EXTRACT, FALSE, FIRST, FLOAT, FLOATING_POINT_LITERAL, FOR, FOREIGN, FROM, FULL, GENERATED, GREATER, GREATEREQUAL, GROUP, HAVING, HOUR, ID, IDENTITY, IF, IMAGE, IMMEDIATE, IN, INCREMENT, INDEX, INITIALLY, INNER, INSERT, INT, INTEGER, INTEGER_LITERAL, INTO, IS, JAVA_OBJECT, JOIN, JOINPLUS, KEY, LARGE, LEADING, LEFT, LESS, LESSEQUAL, LETTER, LIKE, LIMIT, LINE_COMMENT, LINK, LONG, LONGVARBINARY, LONGVARCHAR, MATCHED, MAXVALUE, MERGE, MILLISECOND, MINUS, MINUTE, MINVALUE, MONTH, NEXT, NO, NOT, NOTEQUAL, NOTEQUAL2, NULL, NUMBER, NUMERIC, OBJECT, OFFSET, ON, OPENPAREN, OR, ORDER, ORGANIZATION, OUTER, PLUS, POSITION, PRIMARY, QUARTER, QUESTIONMARK, QUOTED_IDENTIFIER, RAW, REAL, REFERENCES, RENAME, RESTART, RESTRICT, RIGHT, SECOND, SELECT, SEMICOLON, SEQUENCE, SET, SHORT, SLASH, SMALLINT, SOUNDS, START, START_QUOTED_IDENTIFIER, STATE_QuotedIdentEnd, STATE_QuotedIdentStart, STRING, STRING_LITERAL, SUBSTRING, SYSDATE, TABLE, TEXT, THEN, TIME, TIMESTAMP, TINYINT, TO, tokenImage, TRAILING, TRIM, TRUE, TRUNCATE, UNIQUE, UPDATE, UPSERT, USER, USING, VALUE, VALUES, VARBINARY, VARCHAR, VARCHAR2, VARYING, VIEW, WEEK, WHEN, WHERE, WITH, YEAR
Constructor and Description |
---|
AxionSqlParser() |
AxionSqlParser(AxionSqlParserTokenManager tm)
Constructor with generated Token Manager.
|
AxionSqlParser(java.io.InputStream stream)
Constructor with InputStream.
|
AxionSqlParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
AxionSqlParser(java.io.Reader stream)
Constructor.
|
public AxionSqlParserTokenManager token_source
public Token token
public Token jj_nt
public AxionSqlParser()
public AxionSqlParser(java.io.InputStream stream)
public AxionSqlParser(java.io.InputStream stream, java.lang.String encoding)
public AxionSqlParser(java.io.Reader stream)
public AxionSqlParser(AxionSqlParserTokenManager tm)
public AxionCommand parse(java.lang.String sql) throws AxionException
Parser
command
from the given String
.parse
in interface Parser
AxionException
public final AxionCommand SqlCommand() throws ParseException
ParseException
public final AxionCommand SqlAxionCustom() throws ParseException
ParseException
public final AxionCommand SqlRemount() throws ParseException
ParseException
public final AxionCommand SQLDefrag() throws ParseException
ParseException
public final AxionCommand SqlTruncate() throws ParseException
ParseException
public final AxionCommand SqlCreate() throws ParseException
ParseException
public final AxionCommand SqlCreateTable() throws ParseException
ParseException
public final AxionCommand SqlCreateView() throws ParseException
ParseException
public final AxionCommand SqlCreateServer() throws ParseException
ParseException
public final AxionCommand SqlCreateIndex() throws ParseException
ParseException
public final AxionCommand SqlCreateSequence() throws ParseException
ParseException
public final void SqlBasicSequenceOption(CreateSequenceCommand result) throws ParseException
ParseException
public final AxionCommand SqlAlterSequence() throws ParseException
ParseException
public final void SqlIfNotExists(AxionCommand result) throws ParseException
ParseException
public final java.util.Properties SqlReadProperties() throws ParseException
ParseException
public final void SqlColumnExpression(CreateTableCommand result) throws ParseException
ParseException
public final AxionCommand SqlDelete() throws ParseException
ParseException
public final AxionCommand SqlAlterCmd() throws ParseException
ParseException
public final AxionCommand SqlAlterTable() throws ParseException
ParseException
public final AxionCommand SqlRenameTable(java.lang.String tablename) throws ParseException
ParseException
public final AxionCommand SqlAlterTableAlterColumn(java.lang.String tablename) throws ParseException
ParseException
public final AxionCommand SqlDropColumn(java.lang.String tablename) throws ParseException
ParseException
public final AxionCommand SqlAlterTableDrop(java.lang.String tablename) throws ParseException
ParseException
public final AxionCommand SqlAlterTableAdd(java.lang.String tablename) throws ParseException
ParseException
public final AxionCommand SqlDrop() throws ParseException
ParseException
public final AxionCommand SqlDropTable() throws ParseException
ParseException
public final AxionCommand SqlDropView() throws ParseException
ParseException
public final AxionCommand SqlDropServer() throws ParseException
ParseException
public final AxionCommand SqlDropIndex() throws ParseException
ParseException
public final AxionCommand SqlDropSequence() throws ParseException
ParseException
public final AxionCommand SqlInsert() throws ParseException
ParseException
public final InsertCommand SqlMultiTableInsert() throws ParseException
ParseException
public final InsertCommand SqlSingleTableInsert() throws ParseException
ParseException
public final DMLWhenClause SqlDMLWhenClause() throws ParseException
ParseException
public final void SqlInsertIntoClause(InsertCommand insertCommand) throws ParseException
ParseException
public final void SqlInsertElseClause(InsertCommand insertCommand) throws ParseException
ParseException
public final java.util.List insertValues() throws ParseException
ParseException
public final AxionCommand SqlSelect() throws ParseException
ParseException
public final AxionQueryContext SqlSelectContext() throws ParseException
ParseException
public final java.util.List SqlSelectCols() throws ParseException
ParseException
public final ColumnIdentifier SqlNextValueFor() throws ParseException
ParseException
public final Literal SqlSelectLimit() throws ParseException
ParseException
public final Literal SqlSelectOffset() throws ParseException
ParseException
public final Literal SqlNumericLiteralOrBindVar() throws ParseException
ParseException
public final Literal SqlLiteralOrBindVar() throws ParseException
ParseException
public final AxionCommand SqlUpdate() throws ParseException
ParseException
public final void SqlUpdateExceptionWhenClause(UpdateCommand cmd) throws ParseException
ParseException
public final Selectable[] SqlUpdateAssignment() throws ParseException
ParseException
public final AxionCommand SqlUpsert() throws ParseException
ParseException
public final void SqlUpsertExceptionWhenClause(UpsertCommand cmd) throws ParseException
ParseException
public final Constraint SqlTableConstraint() throws ParseException
ParseException
public final Constraint SqlColumnConstraint(java.lang.String tablename, java.lang.String columnname) throws ParseException
ParseException
public final SelectableBasedConstraint SqlSelectableBasedConstraintType(java.lang.String constraintname) throws ParseException
ParseException
public final CheckConstraint SqlCheckConstraintType(java.lang.String constraintname) throws ParseException
ParseException
public final ForeignKeyConstraint SqlForeignKeyConstraintType(java.lang.String constraintname) throws ParseException
ParseException
public final void SqlForeignKeyConstraintTriger(ForeignKeyConstraint constraint) throws ParseException
ParseException
public final void SqlSelectableBasedConstraintArgs(SelectableBasedConstraint constraint) throws ParseException
ParseException
public final void SqlDeferrable(Constraint constraint) throws ParseException
ParseException
public final void SqlInitiallyDeferredOrImmediate(Constraint constraint) throws ParseException
ParseException
public final java.lang.String SqlIdentifier() throws ParseException
ParseException
public final java.lang.String SqlQuotedId() throws ParseException
ParseException
public final java.lang.String SqlUnquotedId() throws ParseException
ParseException
public final BindVariable SqlBindVar() throws ParseException
ParseException
public final java.lang.Object[] SqlColumnDef() throws ParseException
ParseException
public final void SqlGCAndDefaultClause(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlCharStringType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlBinaryStringType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlExactNumericType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlApproximateNumericType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlBooleanType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlDataTimeType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlJavaObjectType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlUserDefinedType(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlCharLength(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlPrecisionAndScale(java.lang.Object[] tuple) throws ParseException
ParseException
public final void SqlPrecision(java.lang.Object[] tuple) throws ParseException
ParseException
public final java.lang.String SqlPositiveInteger() throws ParseException
ParseException
public final java.lang.String SqlUnsignedInteger() throws ParseException
ParseException
public final ColumnIdentifier SqlColumnRef() throws ParseException
ParseException
public final Selectable SqlCase() throws ParseException
ParseException
public final Selectable SqlPseudoColumn() throws ParseException
ParseException
public final Selectable SqlCastAs() throws ParseException
ParseException
public final java.lang.Object[] SqlCastAsType() throws ParseException
ParseException
public final Selectable SqlSubString() throws ParseException
ParseException
public final Selectable SqlExtract() throws ParseException
ParseException
public final Selectable SqlPosition() throws ParseException
ParseException
public final Selectable SqlTrim() throws ParseException
ParseException
public final Selectable SqlFunction() throws ParseException
ParseException
public final java.util.List SqlFunctionArgs(java.lang.String name) throws ParseException
ParseException
public final Selectable SqlSumExprSelectable() throws ParseException
ParseException
public final Selectable SqlProductExprSelectable() throws ParseException
ParseException
public final java.util.List SqlLiteralList() throws ParseException
ParseException
public final java.lang.String SqlLValue() throws ParseException
ParseException
public final Literal SqlLiteral() throws ParseException
ParseException
public final java.lang.String SqlValueTerm() throws ParseException
ParseException
public final java.lang.String SqlClassName() throws ParseException
ParseException
public final Selectable SqlSelectable() throws ParseException
ParseException
public final Selectable SqlSelectAsScalarValue() throws ParseException
ParseException
public final Selectable SqlSelectableElements() throws ParseException
ParseException
public final java.util.List SqlSelectList() throws ParseException
ParseException
public final Selectable SqlSelectClauseElement() throws ParseException
ParseException
public final TableIdentifier SqlTableRef() throws ParseException
ParseException
public final java.util.List SqlOrderBy() throws ParseException
ParseException
public final OrderNode SqlOrderByElem() throws ParseException
ParseException
public final java.util.List SqlOrderByList() throws ParseException
ParseException
public final boolean SqlOrderDirection() throws ParseException
ParseException
public final java.util.List SqlGroupBy() throws ParseException
ParseException
public final Selectable SqlGroupByElem() throws ParseException
ParseException
public final java.util.List SqlGroupByList() throws ParseException
ParseException
public final FromNode SqlFrom() throws ParseException
ParseException
public final FromNode SqlGetTraditionalFromNode(FromNode basenode) throws ParseException
ParseException
public final java.lang.Object SqlGetAnsiFromNode() throws ParseException
ParseException
public final FromNode SqlGetRightFromNode(FromNode node) throws ParseException
ParseException
public final FromNode SqlAnsiJoin(FromNode node) throws ParseException
ParseException
public final int SqlJoinType() throws ParseException
ParseException
public final java.lang.Object SqlTableOrView() throws ParseException
ParseException
public final Selectable SqlWhere() throws ParseException
ParseException
public final Selectable SqlWhereOr() throws ParseException
ParseException
public final Selectable SqlWhereAnd() throws ParseException
ParseException
public final Selectable SqlWhereNot() throws ParseException
ParseException
public final Selectable SqlWhereElt() throws ParseException
ParseException
public final Selectable SqlCompareExpr() throws ParseException
ParseException
public final java.lang.String SqlCompareOp() throws ParseException
ParseException
public final java.lang.String SqlIsClause() throws ParseException
ParseException
public final Selectable[] SqlBetweenClause() throws ParseException
ParseException
public final Selectable SqlExistsClause() throws ParseException
ParseException
public final Selectable SqlInClause(Selectable left) throws ParseException
ParseException
public final Selectable SqlLikeClause(Selectable left) throws ParseException
ParseException
public final AxionCommand SqlSubSelect() throws ParseException
ParseException
public final AxionQueryContext SqlSubSelectContext() 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(AxionSqlParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()