public class SQL extends Object implements SQLConstants
Modifier and Type | Field and Description |
---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
SQLTokenManager |
token_source
Generated Token Manager.
|
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)
Constructor with InputStream.
|
SQL(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
SQL(Reader stream)
Constructor.
|
SQL(SQLTokenManager tm)
Constructor with generated Token Manager.
|
public SQLTokenManager token_source
public Token token
public Token jj_nt
public SQL(InputStream stream)
public SQL(InputStream stream, String encoding)
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
ParseException
public final void Test() throws ParseException
ParseException
public final Expression parseExpression() throws ParseException
ParseException
public final StatementTree Statement() throws ParseException
ParseException
public final StatementTree Create() throws ParseException
ParseException
public final StatementTree Drop() throws ParseException
ParseException
public final StatementTree Select() throws ParseException
ParseException
public final StatementTree Update() throws ParseException
ParseException
public final StatementTree Alter() throws ParseException
ParseException
public final StatementTree AlterTable() throws ParseException
ParseException
public final StatementTree Compact() throws ParseException
ParseException
public final StatementTree CreateTable() throws ParseException
ParseException
public final StatementTree CreateTrigger() throws ParseException
ParseException
public final StatementTree DropTrigger() throws ParseException
ParseException
public final StatementTree CreateFunction() throws ParseException
ParseException
public final StatementTree DropFunction() throws ParseException
ParseException
public final StatementTree CreateSchema() throws ParseException
ParseException
public final StatementTree DropSchema() throws ParseException
ParseException
public final StatementTree CreateView() throws ParseException
ParseException
public final StatementTree DropView() throws ParseException
ParseException
public final StatementTree CreateIndex() throws ParseException
ParseException
public final StatementTree DropTable() throws ParseException
ParseException
public final StatementTree DropIndex() throws ParseException
ParseException
public final StatementTree Call() throws ParseException
ParseException
public final StatementTree CreateSequence() throws ParseException
ParseException
public final StatementTree DropSequence() throws ParseException
ParseException
public final StatementTree CreateUser() throws ParseException
ParseException
public final StatementTree AlterUser() throws ParseException
ParseException
public final StatementTree DropUser() throws ParseException
ParseException
public final void UserManagerCommand(StatementTree cmd) throws ParseException
ParseException
public final StatementTree Delete() throws ParseException
ParseException
public final StatementTree Insert() throws ParseException
ParseException
public final StatementTree Describe() throws ParseException
ParseException
public final StatementTree Show() throws ParseException
ParseException
public final StatementTree Grant() throws ParseException
ParseException
public final StatementTree Revoke() throws ParseException
ParseException
public final StatementTree CompleteTransaction() throws ParseException
ParseException
public final StatementTree Set() throws ParseException
ParseException
public final StatementTree ShutDown() throws ParseException
ParseException
public final String TriggerType() throws ParseException
ParseException
public final String BeforeOrAfter() throws ParseException
ParseException
public final void TriggerTypes(ArrayList list) throws ParseException
ParseException
public final String PrivObject() throws ParseException
ParseException
public final ArrayList PrivList(ArrayList list) throws ParseException
ParseException
public final void PrivListItem(ArrayList list) throws ParseException
ParseException
public final TableSelectExpression GetTableSelectExpression() throws ParseException
ParseException
public final AlterTableAction GetAlterTableAction() throws ParseException
ParseException
public final Object InsertElement() throws ParseException
ParseException
public final ArrayList InsertExpressionList() throws ParseException
ParseException
public final void InsertDataList(ArrayList data_list) throws ParseException
ParseException
public final boolean SetQuantifier() throws ParseException
ParseException
public final void SelectColumnList(ArrayList list) throws ParseException
ParseException
public final SelectColumn SelectColumn() throws ParseException
ParseException
public final void SelectGroupByList(ArrayList list) throws ParseException
ParseException
public final Variable GroupMaxColumn() throws ParseException
ParseException
public final void SelectOrderByList(ArrayList list) throws ParseException
ParseException
public final boolean OrderingSpec() throws ParseException
ParseException
public final void TableDeclaration(FromClause from_clause) throws ParseException
ParseException
public final void SelectTableList(FromClause from_clause) throws ParseException
ParseException
public final void FromClauseJoin(FromClause from_clause) throws ParseException
ParseException
public final void ProcParameterList(ArrayList decl_names, ArrayList decl_types) throws ParseException
ParseException
public final void AssignmentList(ArrayList assignment_list) throws ParseException
ParseException
public final void ColumnDeclarationList(ArrayList column_list, ArrayList constraint_list) throws ParseException
ParseException
public final void ColumnOrConstraintDefinition(ArrayList column_list, ArrayList constraint_list) throws ParseException
ParseException
public final ColumnDef ColumnDefinition() throws ParseException
ParseException
public final void ColumnConstraint(ColumnDef column) throws ParseException
ParseException
public final int GetCollateStrength() throws ParseException
ParseException
public final int GetCollateDecomposition() throws ParseException
ParseException
public final int GetStringSQLType() throws ParseException
ParseException
public final int GetNumericSQLType() throws ParseException
ParseException
public final int GetBooleanSQLType() throws ParseException
ParseException
public final int GetDateSQLType() throws ParseException
ParseException
public final int GetBinarySQLType() throws ParseException
ParseException
public final TType GetTType() throws ParseException
ParseException
public final void ColumnDataType(ColumnDef column) throws ParseException
ParseException
public final ConstraintDef TableConstraintDefinition() throws ParseException
ParseException
public final String ReferentialTrigger() throws ParseException
ParseException
public final void ConstraintAttributes(ConstraintDef constraint) throws ParseException
ParseException
public final ArrayList BasicColumnList(ArrayList list) throws ParseException
ParseException
public final ArrayList UserNameList(ArrayList list) throws ParseException
ParseException
public final void ConditionsExpression(SearchExpression se) throws ParseException
ParseException
public final Expression ExpressionTest() throws ParseException
ParseException
public final Expression DoExpression() throws ParseException
ParseException
public final Expression DoNonBooleanExpression() throws ParseException
ParseException
public final void expression(Expression exp, Stack stack) throws ParseException
ParseException
public final void nonBooleanExpression(Expression exp, Stack stack) throws ParseException
ParseException
public final void OpPart(Expression exp, Stack stack) throws ParseException
ParseException
public final void Operand(Expression exp, Stack stack) throws ParseException
ParseException
public final void SubQueryExpression(Expression exp, Stack stack) throws ParseException
ParseException
public final int PositiveIntegerConstant() throws ParseException
ParseException
public final void SubQueryOperator(Expression exp, Stack stack) throws ParseException
ParseException
public final void BetweenPredicate(Expression exp, Stack stack) throws ParseException
ParseException
public final void BooleanOperator(Expression exp, Stack stack) throws ParseException
ParseException
public final void NumericOperator(Expression exp, Stack stack) throws ParseException
ParseException
public final void StringOperator(Expression exp, Stack stack) throws ParseException
ParseException
public final String GetBooleanOperator() throws ParseException
ParseException
public final String GetSubQueryBooleanOperator() throws ParseException
ParseException
public final String GetNumericOperator() throws ParseException
ParseException
public final String GetStringOperator() throws ParseException
ParseException
public final Token FunctionIdentifier() throws ParseException
ParseException
public final FunctionDef Function() throws ParseException
ParseException
public final FunctionDef JavaInstantiation() throws ParseException
ParseException
public final Expression[] FunctionParams() throws ParseException
ParseException
public final Expression[] ExpressionList() throws ParseException
ParseException
public final String GetComposite() throws ParseException
ParseException
public final String TableName() throws ParseException
ParseException
public final String SequenceName() throws ParseException
ParseException
public final String TriggerName() throws ParseException
ParseException
public final String IndexName() throws ParseException
ParseException
public final String UserName() throws ParseException
ParseException
public final String SchemaName() throws ParseException
ParseException
public final String ConstraintName() throws ParseException
ParseException
public final String ColumnName() throws ParseException
ParseException
public final Variable ColumnNameVariable() throws ParseException
ParseException
public final String TableAliasName() throws ParseException
ParseException
public final String ProcedureName() throws ParseException
ParseException
public final String FunctionName() throws ParseException
ParseException
public final String ProcArgumentName() throws ParseException
ParseException
public final Token SQLIdentifier() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(SQLTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2015. All rights reserved.