public class SQL extends Object implements SQLConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
SQLTokenManager |
token_source |
ACCOUNT, ACTION, ADD, AFTER, ALL, ALTER, AND, ANY, AS, ASC, ASSIGNMENT, AUTOCOMMIT, BEFORE, BETWEEN, BIGINT, BINARY, BIT, BLOB, BOOLEAN, BOOLEAN_LITERAL, BOTH, CACHE, CALL, CALLBACK, CANONICAL_DECOMPOSITION, CASCADE, CAST, CHAR, CHARACTER, CHECK, CLOB, COLLATE, COMMIT, COMPACT, CONCAT, CONSTRAINT, COUNT, CREATE, CROSS, CTALIAS, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, CYCLE, DATE, DECIMAL, DEFAULT, DEFERRABLE, DEFERRED, DELETE, DESC, DESCRIBE, DIGIT, DISTINCT, DIVIDE, DOT_DELIMINATED_REF, DOUBLE, DROP, EACH, EOF, EQUALS, EXCEPT, EXECUTE, EXISTS, EXPLAIN, FLOAT, FOR, FOREIGN, FROM, FULL_DECOMPOSITION, FUNCTION, GLOBVARIABLE, GR, GRANT, GREQ, GROUPBY, GROUPMAX, GROUPS, HAVING, IDENTICAL_STRENGTH, IDENTIFIER, IF, IGNORE, IMMEDIATE, IN, INCREMENT, INDEX, INDEX_BLIST, INDEX_NONE, INITIALLY, INNER, INSERT, INT, INTEGER, INTERSECT, INTO, IS, JAVA, JAVA_OBJECT, JAVA_OBJECT_ARRAY_REF, JOIN, KEY, LANGUAGE, LE, LEADING, LEEQ, LEFT, LETTER, LIKE, LIMIT, LOCK, LONG, LONGVARBINARY, LONGVARCHAR, MAXVALUE, MINVALUE, NAME, NATURAL, NEW, NO, NO_DECOMPOSITION, NOT, NOTEQ, NULL_LITERAL, NUMBER_LITERAL, NUMERIC, OLD, ON, OPTIMIZE, OPTION, OR, ORDERBY, OUTER, PARAMETER_REF, PASSWORD, PRIMARY, PRIMARY_STRENGTH, PRIVILEGES, PROCEDURE, PUBLIC, QUOTED_DELIMINATED_REF, QUOTED_VARIABLE, QUOTEDGLOBVARIABLE, READCOMMITTED, READUNCOMMITTED, REAL, REFERENCES, REGEX, REGEX_LITERAL, REPEATABLEREAD, RESTRICT, RETURNS, REVOKE, RIGHT, ROLLBACK, ROW, SCHEMA, SECONDARY_STRENGTH, SELECT, SEQUENCE, SERIALIZABLE, SET, SHOW, SHUTDOWN, SMALLINT, SOME, SQLADD, SQLCOLUMN, SQLDEFAULT, SQLRETURN, STAR, START, STRING, STRING_LITERAL, SUBTRACT, TABLE, TEMPORARY, TERTIARY_STRENGTH, TEXT, TIME, TIMESTAMP, TINYINT, TO, tokenImage, TRAILING, TRANSACTIONISOLATIONLEVEL, TRIGGER, TRIM, UNION, UNIQUE, UNLOCK, UPDATE, USAGE, USE, USER, USING, VALUES, VARBINARY, VARCHAR, VARYING, VIEW, WHERE, WITH| Constructor and Description |
|---|
SQL(InputStream stream) |
SQL(Reader stream) |
SQL(SQLTokenManager tm) |
public SQLTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public SQL(InputStream stream)
public SQL(Reader stream)
public SQL(SQLTokenManager tm)
public void reset()
public ParameterSubstitution createSubstitution(String image)
public String caseCheck(String identif)
public void expEndParen(Expression exp, Stack stack)
public void expOperator(Expression exp, Stack stack, Operator op)
public void flushOperatorStack(Expression exp, Stack stack, int precedence)
public void expEnd(Expression exp, Stack stack)
public void addOperatorToExpression(Expression exp, Operator op)
public static void main(String[] args) throws ParseException
ParseExceptionpublic final void Test()
throws ParseException
ParseExceptionpublic final Expression parseExpression() throws ParseException
ParseExceptionpublic final StatementTree Statement() throws ParseException
ParseExceptionpublic final StatementTree Create() throws ParseException
ParseExceptionpublic final StatementTree Drop() throws ParseException
ParseExceptionpublic final StatementTree Select() throws ParseException
ParseExceptionpublic final StatementTree Update() throws ParseException
ParseExceptionpublic final StatementTree Alter() throws ParseException
ParseExceptionpublic final StatementTree AlterTable() throws ParseException
ParseExceptionpublic final StatementTree Compact() throws ParseException
ParseExceptionpublic final StatementTree CreateTable() throws ParseException
ParseExceptionpublic final StatementTree CreateTrigger() throws ParseException
ParseExceptionpublic final StatementTree DropTrigger() throws ParseException
ParseExceptionpublic final StatementTree CreateFunction() throws ParseException
ParseExceptionpublic final StatementTree DropFunction() throws ParseException
ParseExceptionpublic final StatementTree CreateSchema() throws ParseException
ParseExceptionpublic final StatementTree DropSchema() throws ParseException
ParseExceptionpublic final StatementTree CreateView() throws ParseException
ParseExceptionpublic final StatementTree DropView() throws ParseException
ParseExceptionpublic final StatementTree CreateIndex() throws ParseException
ParseExceptionpublic final StatementTree DropTable() throws ParseException
ParseExceptionpublic final StatementTree DropIndex() throws ParseException
ParseExceptionpublic final StatementTree Call() throws ParseException
ParseExceptionpublic final StatementTree CreateSequence() throws ParseException
ParseExceptionpublic final StatementTree DropSequence() throws ParseException
ParseExceptionpublic final StatementTree CreateUser() throws ParseException
ParseExceptionpublic final StatementTree AlterUser() throws ParseException
ParseExceptionpublic final StatementTree DropUser() throws ParseException
ParseExceptionpublic final void UserManagerCommand(StatementTree cmd) throws ParseException
ParseExceptionpublic final StatementTree Delete() throws ParseException
ParseExceptionpublic final StatementTree Insert() throws ParseException
ParseExceptionpublic final StatementTree Describe() throws ParseException
ParseExceptionpublic final StatementTree Show() throws ParseException
ParseExceptionpublic final StatementTree Grant() throws ParseException
ParseExceptionpublic final StatementTree Revoke() throws ParseException
ParseExceptionpublic final StatementTree CompleteTransaction() throws ParseException
ParseExceptionpublic final StatementTree Set() throws ParseException
ParseExceptionpublic final StatementTree ShutDown() throws ParseException
ParseExceptionpublic final String TriggerType() throws ParseException
ParseExceptionpublic final String BeforeOrAfter() throws ParseException
ParseExceptionpublic final void TriggerTypes(ArrayList list) throws ParseException
ParseExceptionpublic final String PrivObject() throws ParseException
ParseExceptionpublic final ArrayList PrivList(ArrayList list) throws ParseException
ParseExceptionpublic final void PrivListItem(ArrayList list) throws ParseException
ParseExceptionpublic final TableSelectExpression GetTableSelectExpression() throws ParseException
ParseExceptionpublic final AlterTableAction GetAlterTableAction() throws ParseException
ParseExceptionpublic final Object InsertElement() throws ParseException
ParseExceptionpublic final ArrayList InsertExpressionList() throws ParseException
ParseExceptionpublic final void InsertDataList(ArrayList data_list) throws ParseException
ParseExceptionpublic final boolean SetQuantifier()
throws ParseException
ParseExceptionpublic final void SelectColumnList(ArrayList list) throws ParseException
ParseExceptionpublic final SelectColumn SelectColumn() throws ParseException
ParseExceptionpublic final void SelectGroupByList(ArrayList list) throws ParseException
ParseExceptionpublic final Variable GroupMaxColumn() throws ParseException
ParseExceptionpublic final void SelectOrderByList(ArrayList list) throws ParseException
ParseExceptionpublic final boolean OrderingSpec()
throws ParseException
ParseExceptionpublic final void TableDeclaration(FromClause from_clause) throws ParseException
ParseExceptionpublic final void SelectTableList(FromClause from_clause) throws ParseException
ParseExceptionpublic final void FromClauseJoin(FromClause from_clause) throws ParseException
ParseExceptionpublic final void ProcParameterList(ArrayList decl_names, ArrayList decl_types) throws ParseException
ParseExceptionpublic final void AssignmentList(ArrayList assignment_list) throws ParseException
ParseExceptionpublic final void ColumnDeclarationList(ArrayList column_list, ArrayList constraint_list) throws ParseException
ParseExceptionpublic final void ColumnOrConstraintDefinition(ArrayList column_list, ArrayList constraint_list) throws ParseException
ParseExceptionpublic final ColumnDef ColumnDefinition() throws ParseException
ParseExceptionpublic final void ColumnConstraint(ColumnDef column) throws ParseException
ParseExceptionpublic final int GetCollateStrength()
throws ParseException
ParseExceptionpublic final int GetCollateDecomposition()
throws ParseException
ParseExceptionpublic final int GetStringSQLType()
throws ParseException
ParseExceptionpublic final int GetNumericSQLType()
throws ParseException
ParseExceptionpublic final int GetBooleanSQLType()
throws ParseException
ParseExceptionpublic final int GetDateSQLType()
throws ParseException
ParseExceptionpublic final int GetBinarySQLType()
throws ParseException
ParseExceptionpublic final TType GetTType() throws ParseException
ParseExceptionpublic final void ColumnDataType(ColumnDef column) throws ParseException
ParseExceptionpublic final ConstraintDef TableConstraintDefinition() throws ParseException
ParseExceptionpublic final String ReferentialTrigger() throws ParseException
ParseExceptionpublic final void ConstraintAttributes(ConstraintDef constraint) throws ParseException
ParseExceptionpublic final ArrayList BasicColumnList(ArrayList list) throws ParseException
ParseExceptionpublic final ArrayList UserNameList(ArrayList list) throws ParseException
ParseExceptionpublic final void ConditionsExpression(SearchExpression se) throws ParseException
ParseExceptionpublic final Expression ExpressionTest() throws ParseException
ParseExceptionpublic final Expression DoExpression() throws ParseException
ParseExceptionpublic final Expression DoNonBooleanExpression() throws ParseException
ParseExceptionpublic final void expression(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void nonBooleanExpression(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void OpPart(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void Operand(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void SubQueryExpression(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final int PositiveIntegerConstant()
throws ParseException
ParseExceptionpublic final void SubQueryOperator(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void BetweenPredicate(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void BooleanOperator(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void NumericOperator(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final void StringOperator(Expression exp, Stack stack) throws ParseException
ParseExceptionpublic final String GetBooleanOperator() throws ParseException
ParseExceptionpublic final String GetSubQueryBooleanOperator() throws ParseException
ParseExceptionpublic final String GetNumericOperator() throws ParseException
ParseExceptionpublic final String GetStringOperator() throws ParseException
ParseExceptionpublic final Token FunctionIdentifier() throws ParseException
ParseExceptionpublic final FunctionDef Function() throws ParseException
ParseExceptionpublic final FunctionDef JavaInstantiation() throws ParseException
ParseExceptionpublic final Expression[] FunctionParams() throws ParseException
ParseExceptionpublic final Expression[] ExpressionList() throws ParseException
ParseExceptionpublic final String GetComposite() throws ParseException
ParseExceptionpublic final String TableName() throws ParseException
ParseExceptionpublic final String SequenceName() throws ParseException
ParseExceptionpublic final String TriggerName() throws ParseException
ParseExceptionpublic final String IndexName() throws ParseException
ParseExceptionpublic final String UserName() throws ParseException
ParseExceptionpublic final String SchemaName() throws ParseException
ParseExceptionpublic final String ConstraintName() throws ParseException
ParseExceptionpublic final String ColumnName() throws ParseException
ParseExceptionpublic final Variable ColumnNameVariable() throws ParseException
ParseExceptionpublic final String TableAliasName() throws ParseException
ParseExceptionpublic final String ProcedureName() throws ParseException
ParseExceptionpublic final String FunctionName() throws ParseException
ParseExceptionpublic final String ProcArgumentName() throws ParseException
ParseExceptionpublic final Token SQLIdentifier() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(Reader stream)
public void ReInit(SQLTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2019. All rights reserved.