org.eclipse.datatools.enablement.ingres.internal.ui.parser
Class IngresSQLParser
java.lang.Object
org.eclipse.datatools.sqltools.sql.parser.SQLParser
org.eclipse.datatools.enablement.ingres.internal.ui.parser.IngresSQLParser
- All Implemented Interfaces:
- IngresSQLParserConstants, IngresSQLParserTreeConstants, SQLParserConstants
public class IngresSQLParser
- extends SQLParser
- implements IngresSQLParserTreeConstants, SQLParserConstants, IngresSQLParserConstants
Ingres SQL parser.
- Author:
- stefan.reddig@ingres.com
| Fields inherited from interface org.eclipse.datatools.sqltools.sql.parser.SQLParserConstants |
COLUMNS, DATABASES, DDL_STATEMENTS, DML_STATEMENTS, EVENT_PARAMETERS, GLOBAL_VARIABLES, PARAMETERS, SCOPE_CATALOGS, SCOPE_COLUMNS, SCOPE_DATA_TYPES, SCOPE_DEFAULT, SCOPE_DEFINE_VARIABLES, SCOPE_EVENTS, SCOPE_FUNCTIONS, SCOPE_INDEXES, SCOPE_REFERENCE_VARIABLES, SCOPE_SCHEMAS, SCOPE_SEGMENT, SCOPE_STORED_PROCEDURES, SCOPE_TABLES, SCOPE_TRIGGERS, SCOPE_VIEWS, SCOPE_WITHOUT_TABLE, TABLES, TYPE_SQL_ALTER_DATABASE, TYPE_SQL_ALTER_EVENT, TYPE_SQL_ALTER_FUNCTION, TYPE_SQL_ALTER_INDEX, TYPE_SQL_ALTER_PROCEDURE, TYPE_SQL_ALTER_TABLE, TYPE_SQL_ALTER_TRIGGER, TYPE_SQL_ALTER_VIEW, TYPE_SQL_BEGIN, TYPE_SQL_BEGIN_TRANSACTION, TYPE_SQL_CALL, TYPE_SQL_CREATE_DATABASE, TYPE_SQL_CREATE_DEFAULT, TYPE_SQL_CREATE_EVENT, TYPE_SQL_CREATE_FUNCTION, TYPE_SQL_CREATE_INDEX, TYPE_SQL_CREATE_PROCEDURE, TYPE_SQL_CREATE_TABLE, TYPE_SQL_CREATE_TRIGGER, TYPE_SQL_CREATE_VIEW, TYPE_SQL_DECLARE, TYPE_SQL_DELETE, TYPE_SQL_DROP_VIEW, TYPE_SQL_EVENT_CONDITION, TYPE_SQL_INSERT, TYPE_SQL_OTHERS, TYPE_SQL_ROOT, TYPE_SQL_ROUTINE_HEADER, TYPE_SQL_SELECT, TYPE_SQL_SELECT_INTO, TYPE_SQL_UPDATE, VARIABLE_ASSIGNMENTS, VARIABLE_DECLARATIONS, VARIABLE_REFERENCES |
| Fields inherited from interface org.eclipse.datatools.enablement.ingres.internal.ui.parser.IngresSQLParserConstants |
ADD, ALTER, AND, ANY, AS, ASC, ASTERISK, AT, AUTHORIZATION, AVG, BEGIN, BETWEEN, BINARY_LITERAL, BY, CASCADE, CASE, CHECK, CHECKPOINT, CLOSE, CLOSEPAREN, COALESCE, COMMA, COMMENT_CONTENT, COMMIT, CONCAT, CONSTRAINT, CONTINUE, COUNT, CREATE, CURRENT, CURSOR, DATABASE, DBEVENT, DECLARE, DEFAULT, DEFAULT_VAL, DELETE, DELIM_IDENT, DELIM_PART, DELIM_START, DESC, DIGIT, DISTINCT, DOMAIN, DOT, DOUBLE_STRING_LITERAL, DROP, DUMP, ELSE, END, EOF, EQUAL, ESCAPE, EXCEPT, EXCLUSIVE, EXEC, EXECUTE, EXISTS, EXPONENT, FETCH, FILLFACTOR, FLOATING_POINT_LITERAL, FOR, FOREIGN, FROM, FUNC, FUNCTION, GLOBAL_VAR_NAME, GO, GOTO, GRANT, GREATER, GREATEREQUAL, GROUP, HAVING, HEXDIGIT, ID, IF, II_DBA, II_INGRES, IN, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INDEX, INSERT, INTEGER_LITERAL, INTEGRITY, INTERSECT, INTO, INVALID_TOKEN, IS, ISOLATION, JAVA_REF, JOIN, JOINPLUS, KEY, KILL, LABEL, LEQJOIN, LESS, LESSEQUAL, LETTER, LEVEL, LIKE, LOAD, LOCATION, MAX, MIN, MINUS, MODIFY, MONEY_LITERAL, NO, NOT, NOTEQUAL, NULL, NULLIF, OF, OFF, ON, ONLY, OPEN, OPENPAREN, OPTION, OR, ORDER, OUT, OUTPUT, PARTITION, PERM, PERMANENT, PLUS, PREPARE, PRIMARY, PRINT, PRIVILEGES, PROCEDURE, PROFILE, PUBLIC, QUESTIONMARK, READ, REFERENCES, REMOVE, REORGANIZE, REQJOIN, RETURN, REVOKE, ROLE, ROLLBACK, ROWCOUNT, ROWS, ROWTYPE, RULE, SAVE, SCHEMA, SECURITY_ALARM, SECURITY_AUDIT, SELECT, SEMICOLON, SEQUENCE, SESSION, SET, SHARED, SINGLE_LINE_COMMENT, SINGLE_STRING_LITERAL, SLASH, SOME, SPECSYMB, SQUARE_BRACKET_ID, STATISTICS, SUM, SYMBOL, SYNONYM, TABLE, TEMP_TABLE_NAME, TEMPORARY, TILDE, TO, tokenImage, TRANSACTION, UK_DOUBLE_PRECISION, UK_NO_SCROLL, UK_SEMI_SENSITIVE, UK_VARCHAR_S, UK_VARCHAR_S1, UNION, UNIQUE, UNPARTITION, UPDATE, USER, USING, VALUES, VAR_NAME, VAR_NAME_BODY, VARYING, VIEW, WHEN, WHERE, WHILE, WITH, WORK |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STMT_START_STRING
public static final java.lang.String[] STMT_START_STRING
token_source
public IngresSQLParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
IngresSQLParser
public IngresSQLParser()
IngresSQLParser
public IngresSQLParser(java.io.InputStream stream)
IngresSQLParser
public IngresSQLParser(java.io.InputStream stream,
java.lang.String encoding)
IngresSQLParser
public IngresSQLParser(java.io.Reader stream)
IngresSQLParser
public IngresSQLParser(IngresSQLParserTokenManager tm)
getInstance
public static IngresSQLParser getInstance()
getStatementTerminators
public java.lang.String[] getStatementTerminators()
- Returns the statement terminator array. Different vendors will have their
own terminators defined, so we just leave this method as abstract here.
- Specified by:
getStatementTerminators in class SQLParser
- Returns:
- statement terminator array
getStatementStartTokens
public java.lang.String[] getStatementStartTokens()
- Returns the token strings that can be used to begin a SQL statement.
- Specified by:
getStatementStartTokens in class SQLParser
- Returns:
- statement start token array
string_literal
public final Token string_literal()
throws ParseException
- Throws:
ParseException
UK_ABSOLUTE
public final Token UK_ABSOLUTE()
throws ParseException
- Unreserved Keywords
- Throws:
ParseException
UK_AFTER
public final Token UK_AFTER()
throws ParseException
- Throws:
ParseException
UK_ALL
public final Token UK_ALL()
throws ParseException
- Throws:
ParseException
UK_BIGINT
public final Token UK_BIGINT()
throws ParseException
- Throws:
ParseException
UK_BINARY
public final Token UK_BINARY()
throws ParseException
- Throws:
ParseException
UK_BEFORE
public final Token UK_BEFORE()
throws ParseException
- Throws:
ParseException
UK_BIT
public final Token UK_BIT()
throws ParseException
- Throws:
ParseException
UK_BOOLEAN
public final Token UK_BOOLEAN()
throws ParseException
- Throws:
ParseException
UK_CHAR
public final Token UK_CHAR()
throws ParseException
- Throws:
ParseException
UK_CHAR_S
public final Token UK_CHAR_S()
throws ParseException
- Throws:
ParseException
UK_DATE
public final Token UK_DATE()
throws ParseException
- Throws:
ParseException
UK_DATETIME
public final Token UK_DATETIME()
throws ParseException
- Throws:
ParseException
UK_DB2SQL
public final Token UK_DB2SQL()
throws ParseException
- Throws:
ParseException
UK_DECIMAL
public final Token UK_DECIMAL()
throws ParseException
- Throws:
ParseException
UK_DECIMAL_S
public final Token UK_DECIMAL_S()
throws ParseException
- Throws:
ParseException
UK_DOUBLE_PRECISION
public final Token UK_DOUBLE_PRECISION()
throws ParseException
- Throws:
ParseException
UK_EACH
public final Token UK_EACH()
throws ParseException
- Throws:
ParseException
UK_FALSE
public final Token UK_FALSE()
throws ParseException
- Throws:
ParseException
UK_FIRST
public final Token UK_FIRST()
throws ParseException
- Throws:
ParseException
UK_FLOAT
public final Token UK_FLOAT()
throws ParseException
- Throws:
ParseException
UK_FLOAT4
public final Token UK_FLOAT4()
throws ParseException
- Throws:
ParseException
UK_FLOAT8
public final Token UK_FLOAT8()
throws ParseException
- Throws:
ParseException
UK_FULL
public final Token UK_FULL()
throws ParseException
- Throws:
ParseException
UK_IMAGE
public final Token UK_IMAGE()
throws ParseException
- Throws:
ParseException
UK_INNER
public final Token UK_INNER()
throws ParseException
- Throws:
ParseException
UK_INSENSITIVE
public final Token UK_INSENSITIVE()
throws ParseException
- Throws:
ParseException
UK_INT
public final Token UK_INT()
throws ParseException
- Throws:
ParseException
UK_INT1
public final Token UK_INT1()
throws ParseException
- Throws:
ParseException
UK_INT2
public final Token UK_INT2()
throws ParseException
- Throws:
ParseException
UK_INT4
public final Token UK_INT4()
throws ParseException
- Throws:
ParseException
UK_INT8
public final Token UK_INT8()
throws ParseException
- Throws:
ParseException
UK_LAST
public final Token UK_LAST()
throws ParseException
- Throws:
ParseException
UK_LEFT
public final Token UK_LEFT()
throws ParseException
- Throws:
ParseException
UK_MODE
public final Token UK_MODE()
throws ParseException
- Throws:
ParseException
UK_MONEY
public final Token UK_MONEY()
throws ParseException
- Throws:
ParseException
UK_NAME
public final Token UK_NAME()
throws ParseException
- Throws:
ParseException
UK_NCHAR
public final Token UK_NCHAR()
throws ParseException
- Throws:
ParseException
UK_NEXT
public final Token UK_NEXT()
throws ParseException
- Throws:
ParseException
UK_NEW
public final Token UK_NEW()
throws ParseException
- Throws:
ParseException
UK_NEW_TABLE
public final Token UK_NEW_TABLE()
throws ParseException
- Throws:
ParseException
UK_NONE
public final Token UK_NONE()
throws ParseException
- Throws:
ParseException
UK_NO_SCROLL
public final Token UK_NO_SCROLL()
throws ParseException
- Throws:
ParseException
UK_NUMERIC
public final Token UK_NUMERIC()
throws ParseException
- Throws:
ParseException
UK_NVARCHAR
public final Token UK_NVARCHAR()
throws ParseException
- Throws:
ParseException
UK_OF
public final Token UK_OF()
throws ParseException
- Throws:
ParseException
UK_OLD
public final Token UK_OLD()
throws ParseException
- Throws:
ParseException
UK_OLD_TABLE
public final Token UK_OLD_TABLE()
throws ParseException
- Throws:
ParseException
UK_OUTER
public final Token UK_OUTER()
throws ParseException
- Throws:
ParseException
UK_PRIOR
public final Token UK_PRIOR()
throws ParseException
- Throws:
ParseException
UK_REAL
public final Token UK_REAL()
throws ParseException
- Throws:
ParseException
UK_REFERENCING
public final Token UK_REFERENCING()
throws ParseException
- Throws:
ParseException
UK_RELATIVE
public final Token UK_RELATIVE()
throws ParseException
- Throws:
ParseException
UK_RESULT
public final Token UK_RESULT()
throws ParseException
- Throws:
ParseException
UK_RIGHT
public final Token UK_RIGHT()
throws ParseException
- Throws:
ParseException
UK_ROW
public final Token UK_ROW()
throws ParseException
- Throws:
ParseException
UK_SCROLL
public final Token UK_SCROLL()
throws ParseException
- Throws:
ParseException
UK_SEMI_SENSITIVE
public final Token UK_SEMI_SENSITIVE()
throws ParseException
- Throws:
ParseException
UK_SMALLDATETIME
public final Token UK_SMALLDATETIME()
throws ParseException
- Throws:
ParseException
UK_SMALLINT
public final Token UK_SMALLINT()
throws ParseException
- Throws:
ParseException
UK_SMALLMONEY
public final Token UK_SMALLMONEY()
throws ParseException
- Throws:
ParseException
UK_STATEMENT
public final Token UK_STATEMENT()
throws ParseException
- Throws:
ParseException
UK_TEXT
public final Token UK_TEXT()
throws ParseException
- Throws:
ParseException
UK_THEN
public final Token UK_THEN()
throws ParseException
- Throws:
ParseException
UK_TIME
public final Token UK_TIME()
throws ParseException
- Throws:
ParseException
UK_TIMESTAMP
public final Token UK_TIMESTAMP()
throws ParseException
- Throws:
ParseException
UK_TINYINT
public final Token UK_TINYINT()
throws ParseException
- Throws:
ParseException
UK_TRUE
public final Token UK_TRUE()
throws ParseException
- Throws:
ParseException
UK_UNICHAR
public final Token UK_UNICHAR()
throws ParseException
- Throws:
ParseException
UK_UNIVARCHAR
public final Token UK_UNIVARCHAR()
throws ParseException
- Throws:
ParseException
UK_VARBINARY
public final Token UK_VARBINARY()
throws ParseException
- Throws:
ParseException
UK_VARCHAR
public final Token UK_VARCHAR()
throws ParseException
- Throws:
ParseException
UK_VARCHAR_S
public final Token UK_VARCHAR_S()
throws ParseException
- Throws:
ParseException
UK_VARCHAR_S1
public final Token UK_VARCHAR_S1()
throws ParseException
- Throws:
ParseException
startRootIgnoreException
public final Node startRootIgnoreException()
throws ParseException
- Ignore exception during parsing so that the rest part can be parsed
rule: [ delimiter()] ( statement() )*
- Throws:
ParseException
delimiter
public final ASTSQLDelimiter delimiter()
throws ParseException
- Throws:
ParseException
statement
public final void statement()
throws ParseException
- Throws:
ParseException
unknown_sql_stmt
public final void unknown_sql_stmt()
throws ParseException
- Throws:
ParseException
any_stmt_token
public final void any_stmt_token()
throws ParseException
- Throws:
ParseException
create_stmts
public final void create_stmts()
throws ParseException
- Throws:
ParseException
create_proc_body
public final void create_proc_body()
throws ParseException
- Throws:
ParseException
cdbp_parmspec
public final void cdbp_parmspec()
throws ParseException
- Throws:
ParseException
cdbp_parmlist
public final void cdbp_parmlist()
throws ParseException
- Throws:
ParseException
cdbp_parmitem
public final void cdbp_parmitem()
throws ParseException
- Throws:
ParseException
cdbp_resrowspec
public final void cdbp_resrowspec()
throws ParseException
- Throws:
ParseException
cdbp_beblock
public final void cdbp_beblock()
throws ParseException
- Throws:
ParseException
unique
public final void unique()
throws ParseException
- Throws:
ParseException
alter_stmts
public final void alter_stmts()
throws ParseException
- Throws:
ParseException
drop_stmts
public final void drop_stmts()
throws ParseException
- Throws:
ParseException
delete_stmts
public final void delete_stmts()
throws ParseException
- Throws:
ParseException
insert_stmts
public final void insert_stmts()
throws ParseException
- Throws:
ParseException
update_stmts
public final void update_stmts()
throws ParseException
- Throws:
ParseException
remove_stmts
public final void remove_stmts()
throws ParseException
- Throws:
ParseException
datatype
public final ASTSQLDataType datatype()
throws ParseException
- Throws:
ParseException
base_datatype
public final ASTSQLDataType base_datatype()
throws ParseException
- Throws:
ParseException
java_name
public final java.lang.String java_name()
throws ParseException
- Throws:
ParseException
insert
public final void insert()
throws ParseException
- Throws:
ParseException
optional_insert_col_list
public final void optional_insert_col_list()
throws ParseException
- Throws:
ParseException
insert_column_list
public final void insert_column_list()
throws ParseException
- Throws:
ParseException
insert_source
public final void insert_source()
throws ParseException
- Throws:
ParseException
insert_values
public final void insert_values()
throws ParseException
- Throws:
ParseException
insert_value_list
public final void insert_value_list()
throws ParseException
- Throws:
ParseException
insert_value
public final void insert_value()
throws ParseException
- Throws:
ParseException
update
public final void update()
throws ParseException
- Throws:
ParseException
set_clause_list
public final void set_clause_list()
throws ParseException
- Throws:
ParseException
set_clause
public final void set_clause()
throws ParseException
- Throws:
ParseException
select
public final void select()
throws ParseException
- Throws:
ParseException
query_expression
public final void query_expression()
throws ParseException
- Throws:
ParseException
query_term
public final void query_term()
throws ParseException
- Throws:
ParseException
all_option
public final void all_option()
throws ParseException
- Throws:
ParseException
query_primary
public final void query_primary()
throws ParseException
- Throws:
ParseException
simple_table
public final void simple_table()
throws ParseException
- Throws:
ParseException
query_specification
public final void query_specification()
throws ParseException
- Throws:
ParseException
all_distinct
public final void all_distinct()
throws ParseException
- Throws:
ParseException
delete
public final void delete()
throws ParseException
- Throws:
ParseException
subquery
public final void subquery()
throws ParseException
- Throws:
ParseException
subquery_content
public final void subquery_content()
throws ParseException
- Throws:
ParseException
subq_select
public final void subq_select()
throws ParseException
- Throws:
ParseException
subq_all_distinct
public final void subq_all_distinct()
throws ParseException
- Throws:
ParseException
subq_fake_union
public final void subq_fake_union()
throws ParseException
- Throws:
ParseException
subq_fake_select
public final void subq_fake_select()
throws ParseException
- Throws:
ParseException
subq_fake_primary
public final void subq_fake_primary()
throws ParseException
- Throws:
ParseException
subq_fake_all_distinct
public final void subq_fake_all_distinct()
throws ParseException
- Throws:
ParseException
subq_fake_select_expression
public final void subq_fake_select_expression()
throws ParseException
- Throws:
ParseException
subq_fake_order_by_clause
public final void subq_fake_order_by_clause()
throws ParseException
- Throws:
ParseException
subq_fake_order_by_list
public final void subq_fake_order_by_list()
throws ParseException
- Throws:
ParseException
subq_fake_order_by_item
public final void subq_fake_order_by_item()
throws ParseException
- Throws:
ParseException
subq_fake_cursor_update_list
public final void subq_fake_cursor_update_list()
throws ParseException
- Throws:
ParseException
subq_fake_cursor_column_list
public final void subq_fake_cursor_column_list()
throws ParseException
- Throws:
ParseException
subq_fake_curs_upd_column
public final void subq_fake_curs_upd_column()
throws ParseException
- Throws:
ParseException
compound_statement
public final void compound_statement()
throws ParseException
- Throws:
ParseException
nullprogram
public final void nullprogram()
throws ParseException
- Throws:
ParseException
program
public final void program()
throws ParseException
- Throws:
ParseException
declare
public final void declare()
throws ParseException
- Throws:
ParseException
declare_prefix
public final void declare_prefix()
throws ParseException
- Throws:
ParseException
fetch_orientation
public final void fetch_orientation()
throws ParseException
- Throws:
ParseException
fetch_val_spec
public final void fetch_val_spec()
throws ParseException
- Throws:
ParseException
fetch_into_clause
public final void fetch_into_clause()
throws ParseException
- Throws:
ParseException
fetch_into_list
public final void fetch_into_list()
throws ParseException
- Throws:
ParseException
fetch_from_spec
public final void fetch_from_spec()
throws ParseException
- Throws:
ParseException
return_stmt
public final void return_stmt()
throws ParseException
- Throws:
ParseException
execute_stmt
public final void execute_stmt()
throws ParseException
- Throws:
ParseException
optional_expression
public final void optional_expression()
throws ParseException
- Throws:
ParseException
if_stmt
public final void if_stmt()
throws ParseException
- Throws:
ParseException
if_prefix
public final void if_prefix()
throws ParseException
- Throws:
ParseException
begin_tran
public final void begin_tran()
throws ParseException
- Throws:
ParseException
commit_tran
public final void commit_tran()
throws ParseException
- Throws:
ParseException
tran_or_work
public final void tran_or_work()
throws ParseException
- Throws:
ParseException
rollback_tran
public final void rollback_tran()
throws ParseException
- Throws:
ParseException
optional_xact_name
public final void optional_xact_name()
throws ParseException
- Throws:
ParseException
xact_name
public final void xact_name()
throws ParseException
- Throws:
ParseException
print
public final void print()
throws ParseException
- Throws:
ParseException
pr_arglist
public final void pr_arglist()
throws ParseException
- Throws:
ParseException
arglist
public final void arglist()
throws ParseException
- Throws:
ParseException
printstring
public final void printstring()
throws ParseException
- Throws:
ParseException
id_or_string
public final Token id_or_string()
throws ParseException
- Throws:
ParseException
idplus
public final Token idplus()
throws ParseException
- Throws:
ParseException
select_list
public final void select_list()
throws ParseException
- Throws:
ParseException
select_expression
public final void select_expression()
throws ParseException
- Throws:
ParseException
select_or_set_variable_assignment
public final void select_or_set_variable_assignment()
throws ParseException
- Throws:
ParseException
optional_as
public final void optional_as()
throws ParseException
- Throws:
ParseException
subquery_select_expression
public final void subquery_select_expression()
throws ParseException
- Throws:
ParseException
declaration_list
public final void declaration_list()
throws ParseException
- Throws:
ParseException
comma
public final void comma()
throws ParseException
- Throws:
ParseException
declaration
public final void declaration()
throws ParseException
- Throws:
ParseException
optional_param_default
public final java.lang.String optional_param_default()
throws ParseException
- Throws:
ParseException
param_options
public final int param_options()
throws ParseException
- Throws:
ParseException
out_option
public final void out_option()
throws ParseException
- Throws:
ParseException
shared
public final void shared()
throws ParseException
- Throws:
ParseException
forceoptions
public final void forceoptions()
throws ParseException
- Throws:
ParseException
forceoption_terms
public final void forceoption_terms()
throws ParseException
- Throws:
ParseException
forceoption_term
public final void forceoption_term()
throws ParseException
- Throws:
ParseException
forceindex
public final void forceindex()
throws ParseException
- Throws:
ParseException
forcestrategy
public final void forcestrategy()
throws ParseException
- Throws:
ParseException
inner_join
public final void inner_join()
throws ParseException
- Throws:
ParseException
oj_operator
public final void oj_operator()
throws ParseException
- Throws:
ParseException
from_where_clause
public final void from_where_clause()
throws ParseException
- Throws:
ParseException
where_current_clause
public final void where_current_clause()
throws ParseException
- Throws:
ParseException
from_clause
public final void from_clause()
throws ParseException
- Throws:
ParseException
optional_from_clause
public final void optional_from_clause()
throws ParseException
- Throws:
ParseException
from_list
public final void from_list()
throws ParseException
- Throws:
ParseException
from_table
public final void from_table()
throws ParseException
- Throws:
ParseException
from_item
public final void from_item()
throws ParseException
- Throws:
ParseException
from_unit
public final void from_unit()
throws ParseException
- Throws:
ParseException
derived_table_name
public final void derived_table_name()
throws ParseException
- Throws:
ParseException
optional_derived_col_name_list
public final void optional_derived_col_name_list()
throws ParseException
- Throws:
ParseException
derived_column_list
public final void derived_column_list()
throws ParseException
- Throws:
ParseException
derived_col_name
public final void derived_col_name()
throws ParseException
- Throws:
ParseException
where_clause
public final void where_clause()
throws ParseException
- Throws:
ParseException
boolean_expression
public final void boolean_expression()
throws ParseException
- Throws:
ParseException
boolean_term
public final void boolean_term()
throws ParseException
- Throws:
ParseException
boolean_factor
public final void boolean_factor()
throws ParseException
- Throws:
ParseException
boolean_primary
public final void boolean_primary()
throws ParseException
- Throws:
ParseException
group_by_clause
public final void group_by_clause()
throws ParseException
- Throws:
ParseException
by_all
public final void by_all()
throws ParseException
- Throws:
ParseException
group_by_list
public final void group_by_list()
throws ParseException
- Throws:
ParseException
group_by_item
public final void group_by_item()
throws ParseException
- Throws:
ParseException
having_clause
public final void having_clause()
throws ParseException
- Throws:
ParseException
order_by_clause
public final void order_by_clause()
throws ParseException
- Throws:
ParseException
order_by_list
public final void order_by_list()
throws ParseException
- Throws:
ParseException
order_by_item
public final void order_by_item()
throws ParseException
- Throws:
ParseException
order_by_option
public final void order_by_option()
throws ParseException
- Throws:
ParseException
predicate
public final void predicate()
throws ParseException
- Throws:
ParseException
predicate_op
public final void predicate_op()
throws ParseException
- Throws:
ParseException
comparison_predicate
public final void comparison_predicate()
throws ParseException
- Throws:
ParseException
row_comparison_predicate
public final void row_comparison_predicate()
throws ParseException
- Throws:
ParseException
comp_op
public final void comp_op()
throws ParseException
- Throws:
ParseException
join_op
public final void join_op()
throws ParseException
- Throws:
ParseException
between_predicate
public final void between_predicate()
throws ParseException
- Throws:
ParseException
null_predicate
public final void null_predicate()
throws ParseException
- Throws:
ParseException
in_predicate
public final void in_predicate()
throws ParseException
- Throws:
ParseException
in_value_list
public final void in_value_list()
throws ParseException
- Throws:
ParseException
any_predicate
public final void any_predicate()
throws ParseException
- Throws:
ParseException
all_predicate
public final void all_predicate()
throws ParseException
- Throws:
ParseException
exists_predicate
public final void exists_predicate()
throws ParseException
- Throws:
ParseException
like_predicate
public final void like_predicate()
throws ParseException
- Throws:
ParseException
pattern_clause
public final void pattern_clause()
throws ParseException
- Throws:
ParseException
escape_clause
public final void escape_clause()
throws ParseException
- Throws:
ParseException
row_constructor
public final void row_constructor()
throws ParseException
- Throws:
ParseException
row_constructor_list
public final void row_constructor_list()
throws ParseException
- Throws:
ParseException
row_constructor_elem
public final void row_constructor_elem()
throws ParseException
- Throws:
ParseException
expression
public final ASTExpression expression()
throws ParseException
- Throws:
ParseException
term
public final void term()
throws ParseException
- Throws:
ParseException
factor
public final void factor()
throws ParseException
- Throws:
ParseException
subfactor
public final void subfactor()
throws ParseException
- Throws:
ParseException
primary_1
public final void primary_1()
throws ParseException
- Throws:
ParseException
primary
public final void primary()
throws ParseException
- Throws:
ParseException
case_expression
public final void case_expression()
throws ParseException
- Throws:
ParseException
case_abbreviation
public final void case_abbreviation()
throws ParseException
- Throws:
ParseException
case_specification
public final void case_specification()
throws ParseException
- Throws:
ParseException
simple_or_searched_case
public final void simple_or_searched_case()
throws ParseException
- Throws:
ParseException
simple_case
public final void simple_case()
throws ParseException
- Throws:
ParseException
searched_case
public final void searched_case()
throws ParseException
- Throws:
ParseException
simple_when_clause_list
public final void simple_when_clause_list()
throws ParseException
- Throws:
ParseException
simple_when_clause
public final void simple_when_clause()
throws ParseException
- Throws:
ParseException
searched_when_clause_list
public final void searched_when_clause_list()
throws ParseException
- Throws:
ParseException
searched_when_clause
public final void searched_when_clause()
throws ParseException
- Throws:
ParseException
optional_else_clause
public final void optional_else_clause()
throws ParseException
- Throws:
ParseException
result
public final void result()
throws ParseException
- Throws:
ParseException
coalesce_format
public final void coalesce_format()
throws ParseException
- Throws:
ParseException
coalesce_list
public final void coalesce_list()
throws ParseException
- Throws:
ParseException
coalesce_element
public final void coalesce_element()
throws ParseException
- Throws:
ParseException
nullif_format
public final void nullif_format()
throws ParseException
- Throws:
ParseException
column
public final void column()
throws ParseException
- Throws:
ParseException
id
public final Token id()
throws ParseException
- Throws:
ParseException
string
public final void string()
throws ParseException
- Throws:
ParseException
id_string
public final void id_string()
throws ParseException
- Throws:
ParseException
integer
public final void integer()
throws ParseException
- Throws:
ParseException
number
public final int number()
throws ParseException
- Throws:
ParseException
constant
public final void constant()
throws ParseException
- Throws:
ParseException
signed_const
public final Token signed_const()
throws ParseException
- Throws:
ParseException
unsigned_const
public final Token unsigned_const()
throws ParseException
- Throws:
ParseException
literal
public final java.lang.String literal()
throws ParseException
- Throws:
ParseException
binary
public final void binary()
throws ParseException
- Throws:
ParseException
null_stmt
public final Token null_stmt()
throws ParseException
- Throws:
ParseException
variable
public final Token variable()
throws ParseException
- Throws:
ParseException
variable_assignment
public final Token variable_assignment()
throws ParseException
- Throws:
ParseException
dyn_question_mark
public final Token dyn_question_mark()
throws ParseException
- Throws:
ParseException
java_memberref
public final void java_memberref()
throws ParseException
- Throws:
ParseException
function
public final void function()
throws ParseException
- Throws:
ParseException
builtin_function
public final void builtin_function()
throws ParseException
- Throws:
ParseException
subq_expression_list
public final void subq_expression_list()
throws ParseException
- Throws:
ParseException
subq_expression
public final void subq_expression()
throws ParseException
- Throws:
ParseException
expression_list
public final void expression_list()
throws ParseException
- Throws:
ParseException
optional_using_clause
public final void optional_using_clause()
throws ParseException
- Throws:
ParseException
optional_comma_argument
public final void optional_comma_argument()
throws ParseException
- Throws:
ParseException
agg_function
public final void agg_function()
throws ParseException
- Throws:
ParseException
agg_function_specification
public final void agg_function_specification()
throws ParseException
- Throws:
ParseException
all
public final void all()
throws ParseException
- Throws:
ParseException
boolean_function
public final void boolean_function()
throws ParseException
- Throws:
ParseException
ii_generic_ident
public final Token ii_generic_ident()
throws ParseException
- GENERIC RULES @RH@
These rules are "generic" in that they are referenced by several
productions from different statements, but serve a common purpose.
They include:
nonkeyword same as NAME; used to distinguish non-keywords in the grammar
name_or_sconst Use for any constant; not valid for identifiers
generic_ident any user-defined object
internal_ident same as generic_ident, but may also include SCONST
sconst_ident same is internal_ident, but doesn't check length of SCONST,
used in WITH-clauses where need more context to verify length limits.
auth_ident same as internal_ident; used to distinguish authorization identifiers
user_ident same as auth_ident, but may also include $dba or $ingres
schema_spec same as user_ident; used to distinguish schema identifiers
obj_spec generic object specification
tbl_spec same as generic_ident; used to distinguish table names
col_spec same as generic_ident; used to distinguish column names
- Throws:
ParseException
ii_sconst_ident
public final void ii_sconst_ident()
throws ParseException
- Throws:
ParseException
ii_internal_ident
public final void ii_internal_ident()
throws ParseException
- Throws:
ParseException
ii_auth_ident
public final void ii_auth_ident()
throws ParseException
- Throws:
ParseException
ii_user_ident
public final void ii_user_ident()
throws ParseException
- Throws:
ParseException
ii_schema_spec
public final void ii_schema_spec()
throws ParseException
- Throws:
ParseException
ii_tbl_spec
public final void ii_tbl_spec()
throws ParseException
- Throws:
ParseException
ii_col_spec
public final void ii_col_spec()
throws ParseException
- Throws:
ParseException
ii_obj_spec
public final void ii_obj_spec()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.InputStream stream,
java.lang.String encoding)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(IngresSQLParserTokenManager 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()