org.axiondb.parser
Class AxionSqlParser
java.lang.Object
org.axiondb.parser.AxionSqlParser
- All Implemented Interfaces:
- AxionSqlParserConstants, Parser
- public class AxionSqlParser
- extends Object
- implements Parser, AxionSqlParserConstants
JavaCC generated SQL parser.
Generated from AxionSqlParser.jj ($Header: /cvs/axion/grammars/AxionSqlParser.jj,v 1.104 2004/09/09 19:47:27 ahimanikya Exp $).
Do not edit this (.java) file directly, it is programmaticly generated.
Fields inherited from interface org.axiondb.parser.AxionSqlParserConstants |
ADD, ALL, ALTER, AND, AS, ASC, ASSIGN, ASTERISK, BEGIN, BETWEEN, BLOCK_COMMENT, BY, CASE, CAST, CHECK, CLOSEPAREN, COLUMN, COMMA, CONCAT, CONSTRAINT, CREATE, DATABASE, DAY, DEFAULT, DEFAULT_, DEFERRABLE, DEFERRED, DEFRAG, DELETE, DESC, DIGIT, DISTINCT, DOT, DROP, ELSE, END, END_QUOTED_IDENTIFIER, EOF, EQUAL, EXCEPTION, EXISTS, EXPLAIN, EXPONENT, EXTERNAL, FALSE, FIRST, FLOATING_POINT_LITERAL, FOREIGN, FROM, FULL, GREATER, GREATEREQUAL, GROUP, HAVING, HOUR, ID, IF, IMMEDIATE, IN, INDEX, INITIALLY, INNER, INSERT, INTEGER_LITERAL, INTO, IS, JOIN, JOINPLUS, KEY, LEFT, LESS, LESSEQUAL, LETTER, LIKE, LIMIT, LINE_COMMENT, LINK, MATCHED, MERGE, MILLISECOND, MINUS, MINUTE, MONTH, NOT, NOTEQUAL, NOTEQUAL2, NULL, OFFSET, ON, OPENPAREN, OR, ORDER, ORGANIZATION, OUTER, PLUS, PRIMARY, QUARTER, QUESTIONMARK, QUOTED_IDENTIFIER, REFERENCES, RIGHT, SECOND, SELECT, SEMICOLON, SEQUENCE, SET, SLASH, SOUNDS, START_QUOTED_IDENTIFIER, STARTS, STATE_QuotedIdentEnd, STATE_QuotedIdentStart, STRING_LITERAL, SYSDATE, TABLE, THEN, tokenImage, TRUE, TRUNCATE, UNIQUE, UPDATE, UPSERT, USER, USING, VALUES, VIEW, WEEK, WHEN, WHERE, WITH, YEAR |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public AxionSqlParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
AxionSqlParser
public AxionSqlParser()
AxionSqlParser
public AxionSqlParser(InputStream stream)
AxionSqlParser
public AxionSqlParser(Reader stream)
AxionSqlParser
public AxionSqlParser(AxionSqlParserTokenManager tm)
parse
public AxionCommand parse(String sql)
throws AxionException
- Description copied from interface:
Parser
- Parse a
command
from the given String
.
- Specified by:
parse
in interface Parser
- Throws:
AxionException
SqlCommand
public final AxionCommand SqlCommand()
throws ParseException
- Throws:
ParseException
SqlAxionCustom
public final AxionCommand SqlAxionCustom()
throws ParseException
- Throws:
ParseException
SqlRemount
public final AxionCommand SqlRemount()
throws ParseException
- Throws:
ParseException
SQLDefrag
public final AxionCommand SQLDefrag()
throws ParseException
- Throws:
ParseException
SqlTruncate
public final AxionCommand SqlTruncate()
throws ParseException
- Throws:
ParseException
SqlCreate
public final AxionCommand SqlCreate()
throws ParseException
- Throws:
ParseException
SqlCreateTable
public final AxionCommand SqlCreateTable(String type)
throws ParseException
- Throws:
ParseException
SqlCreateView
public final AxionCommand SqlCreateView()
throws ParseException
- Throws:
ParseException
SqlCreateServer
public final AxionCommand SqlCreateServer()
throws ParseException
- Throws:
ParseException
SqlCreateIndex
public final AxionCommand SqlCreateIndex(boolean unique,
String type)
throws ParseException
- Throws:
ParseException
SqlCreateSequence
public final AxionCommand SqlCreateSequence()
throws ParseException
- Throws:
ParseException
SqlIfNotExists
public final void SqlIfNotExists(AxionCommand result)
throws ParseException
- Throws:
ParseException
SqlReadProperties
public final Properties SqlReadProperties()
throws ParseException
- Throws:
ParseException
SqlColumnExpression
public final void SqlColumnExpression(CreateTableCommand result)
throws ParseException
- Throws:
ParseException
SqlDelete
public final AxionCommand SqlDelete()
throws ParseException
- Throws:
ParseException
SqlAlterTable
public final AxionCommand SqlAlterTable()
throws ParseException
- Throws:
ParseException
SqlDropColumn
public final AxionCommand SqlDropColumn(String tablename)
throws ParseException
- Throws:
ParseException
SqlAlterTableDrop
public final AxionCommand SqlAlterTableDrop(String tablename)
throws ParseException
- Throws:
ParseException
SqlAlterTableAdd
public final AxionCommand SqlAlterTableAdd(String tablename)
throws ParseException
- Throws:
ParseException
SqlDrop
public final AxionCommand SqlDrop()
throws ParseException
- Throws:
ParseException
SqlDropTable
public final AxionCommand SqlDropTable()
throws ParseException
- Throws:
ParseException
SqlDropView
public final AxionCommand SqlDropView()
throws ParseException
- Throws:
ParseException
SqlDropServer
public final AxionCommand SqlDropServer()
throws ParseException
- Throws:
ParseException
SqlDropIndex
public final AxionCommand SqlDropIndex()
throws ParseException
- Throws:
ParseException
SqlDropSequence
public final AxionCommand SqlDropSequence()
throws ParseException
- Throws:
ParseException
SqlInsert
public final AxionCommand SqlInsert()
throws ParseException
- Throws:
ParseException
SqlMultiTableInsert
public final InsertCommand SqlMultiTableInsert()
throws ParseException
- Throws:
ParseException
SqlSingleTableInsert
public final InsertCommand SqlSingleTableInsert()
throws ParseException
- Throws:
ParseException
SqlDMLWhenClause
public final DMLWhenClause SqlDMLWhenClause()
throws ParseException
- Throws:
ParseException
SqlInsertIntoClause
public final void SqlInsertIntoClause(InsertCommand insertCommand)
throws ParseException
- Throws:
ParseException
SqlInsertElseClause
public final void SqlInsertElseClause(InsertCommand insertCommand)
throws ParseException
- Throws:
ParseException
insertValues
public final List insertValues()
throws ParseException
- Throws:
ParseException
SqlSelect
public final AxionCommand SqlSelect()
throws ParseException
- Throws:
ParseException
SqlSelectContext
public final AxionQueryContext SqlSelectContext()
throws ParseException
- Throws:
ParseException
SqlSelectCols
public final List SqlSelectCols()
throws ParseException
- Throws:
ParseException
SqlSelectLimit
public final Literal SqlSelectLimit()
throws ParseException
- Throws:
ParseException
SqlSelectOffset
public final Literal SqlSelectOffset()
throws ParseException
- Throws:
ParseException
SqlNumericLiteralOrBindVar
public final Literal SqlNumericLiteralOrBindVar()
throws ParseException
- Throws:
ParseException
SqlLiteralOrBindVar
public final Literal SqlLiteralOrBindVar()
throws ParseException
- Throws:
ParseException
SqlUpdate
public final AxionCommand SqlUpdate()
throws ParseException
- Throws:
ParseException
SqlUpdateExceptionWhenClause
public final void SqlUpdateExceptionWhenClause(UpdateCommand cmd)
throws ParseException
- Throws:
ParseException
SqlUpdateAssignment
public final Selectable[] SqlUpdateAssignment()
throws ParseException
- Throws:
ParseException
SqlUpsert
public final AxionCommand SqlUpsert()
throws ParseException
- Throws:
ParseException
SqlUpsertExceptionWhenClause
public final void SqlUpsertExceptionWhenClause(UpsertCommand cmd)
throws ParseException
- Throws:
ParseException
SqlTableConstraint
public final Constraint SqlTableConstraint()
throws ParseException
- Throws:
ParseException
SqlColumnConstraint
public final Constraint SqlColumnConstraint(String tablename,
String columnname)
throws ParseException
- Throws:
ParseException
SqlSelectableBasedConstraintType
public final SelectableBasedConstraint SqlSelectableBasedConstraintType(String constraintname)
throws ParseException
- Throws:
ParseException
SqlCheckConstraintType
public final CheckConstraint SqlCheckConstraintType(String constraintname)
throws ParseException
- Throws:
ParseException
SqlForeignKeyConstraintType
public final ForeignKeyConstraint SqlForeignKeyConstraintType(String constraintname)
throws ParseException
- Throws:
ParseException
SqlSelectableBasedConstraintArgs
public final void SqlSelectableBasedConstraintArgs(SelectableBasedConstraint constraint)
throws ParseException
- Throws:
ParseException
SqlDeferrable
public final void SqlDeferrable(Constraint constraint)
throws ParseException
- Throws:
ParseException
SqlInitiallyDeferredOrImmediate
public final void SqlInitiallyDeferredOrImmediate(Constraint constraint)
throws ParseException
- Throws:
ParseException
SqlIdentifier
public final String SqlIdentifier()
throws ParseException
- Throws:
ParseException
SqlQuotedId
public final Token SqlQuotedId()
throws ParseException
- Throws:
ParseException
SqlBindVar
public final BindVariable SqlBindVar()
throws ParseException
- Throws:
ParseException
SqlColumnDef
public final Object[] SqlColumnDef()
throws ParseException
- Throws:
ParseException
SqlColumnRef
public final ColumnIdentifier SqlColumnRef()
throws ParseException
- Throws:
ParseException
SqlCase
public final Selectable SqlCase()
throws ParseException
- Throws:
ParseException
SqlPseudoColumn
public final Selectable SqlPseudoColumn()
throws ParseException
- Throws:
ParseException
SqlCastAs
public final Selectable SqlCastAs()
throws ParseException
- Throws:
ParseException
SqlCastAsType
public final Object[] SqlCastAsType()
throws ParseException
- Throws:
ParseException
SqlFunction
public final Selectable SqlFunction()
throws ParseException
- Throws:
ParseException
SqlFunctionArgs
public final List SqlFunctionArgs()
throws ParseException
- Throws:
ParseException
SqlSumExprSelectable
public final Selectable SqlSumExprSelectable()
throws ParseException
- Throws:
ParseException
SqlProductExprSelectable
public final Selectable SqlProductExprSelectable()
throws ParseException
- Throws:
ParseException
SqlLiteralList
public final List SqlLiteralList()
throws ParseException
- Throws:
ParseException
SqlLValue
public final String SqlLValue()
throws ParseException
- Throws:
ParseException
SqlLiteral
public final Literal SqlLiteral()
throws ParseException
- Throws:
ParseException
SqlLValueTerm
public final String SqlLValueTerm()
throws ParseException
- Throws:
ParseException
SqlSelectable
public final Selectable SqlSelectable()
throws ParseException
- Throws:
ParseException
SqlSelectAsScalarValue
public final Selectable SqlSelectAsScalarValue()
throws ParseException
- Throws:
ParseException
SqlSelectableElements
public final Selectable SqlSelectableElements()
throws ParseException
- Throws:
ParseException
SqlSelectList
public final List SqlSelectList()
throws ParseException
- Throws:
ParseException
SqlSelectClauseElement
public final Selectable SqlSelectClauseElement()
throws ParseException
- Throws:
ParseException
SqlTableRef
public final TableIdentifier SqlTableRef()
throws ParseException
- Throws:
ParseException
SqlOrderBy
public final List SqlOrderBy()
throws ParseException
- Throws:
ParseException
SqlOrderByElem
public final OrderNode SqlOrderByElem()
throws ParseException
- Throws:
ParseException
SqlOrderByList
public final List SqlOrderByList()
throws ParseException
- Throws:
ParseException
SqlOrderDirection
public final boolean SqlOrderDirection()
throws ParseException
- Throws:
ParseException
SqlGroupBy
public final List SqlGroupBy()
throws ParseException
- Throws:
ParseException
SqlGroupByElem
public final Selectable SqlGroupByElem()
throws ParseException
- Throws:
ParseException
SqlGroupByList
public final List SqlGroupByList()
throws ParseException
- Throws:
ParseException
SqlFrom
public final FromNode SqlFrom()
throws ParseException
- Throws:
ParseException
SqlNestedFrom
public final FromNode SqlNestedFrom()
throws ParseException
- Throws:
ParseException
SqlTableList
public final FromNode SqlTableList(FromNode node)
throws ParseException
- Throws:
ParseException
SqlJoin
public final FromNode SqlJoin(FromNode node)
throws ParseException
- Throws:
ParseException
SqlJoinType
public final int SqlJoinType()
throws ParseException
- Throws:
ParseException
SqlTableOrView
public final Object SqlTableOrView()
throws ParseException
- Throws:
ParseException
SqlWhere
public final Selectable SqlWhere()
throws ParseException
- Throws:
ParseException
SqlWhereOr
public final Selectable SqlWhereOr()
throws ParseException
- Throws:
ParseException
SqlWhereAnd
public final Selectable SqlWhereAnd()
throws ParseException
- Throws:
ParseException
SqlWhereNot
public final Selectable SqlWhereNot()
throws ParseException
- Throws:
ParseException
SqlWhereElt
public final Selectable SqlWhereElt()
throws ParseException
- Throws:
ParseException
SqlCompareExpr
public final Selectable SqlCompareExpr()
throws ParseException
- Throws:
ParseException
SqlCompareOp
public final String SqlCompareOp()
throws ParseException
- Throws:
ParseException
SqlIsClause
public final String SqlIsClause()
throws ParseException
- Throws:
ParseException
SqlBetweenClause
public final Selectable[] SqlBetweenClause()
throws ParseException
- Throws:
ParseException
SqlExistsClause
public final Selectable SqlExistsClause()
throws ParseException
- Throws:
ParseException
SqlInClause
public final Selectable SqlInClause(Selectable left)
throws ParseException
- Throws:
ParseException
SqlLikeCaluse
public final Selectable SqlLikeCaluse(Selectable left)
throws ParseException
- Throws:
ParseException
SqlSubSelect
public final AxionCommand SqlSubSelect()
throws ParseException
- Throws:
ParseException
SqlSubSelectContext
public final AxionQueryContext SqlSubSelectContext()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(InputStream stream)
ReInit
public void ReInit(Reader stream)
ReInit
public void ReInit(AxionSqlParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()