Package org.intermine.sql.query
Class SqlTreeParser
- java.lang.Object
-
- antlr.TreeParser
-
- org.intermine.sql.query.SqlTreeParser
-
- All Implemented Interfaces:
SqlTokenTypes
public class SqlTreeParser extends antlr.TreeParser implements SqlTokenTypes
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
_tokenNames
static antlr.collections.impl.BitSet
_tokenSet_0
static antlr.collections.impl.BitSet
_tokenSet_1
-
Fields inherited from class antlr.TreeParser
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth
-
Fields inherited from interface org.intermine.sql.query.SqlTokenTypes
ALIAS, AND_CONSTRAINT_SET, ASTERISK, AT_SIGN, CLOSE_PAREN, COLONTYPE, COMMA, CONSTANT, CONSTRAINT, DIVIDE, DOT, EOF, EQ, ESCAPED_STRING, FIELD, FIELD_ALIAS, FIELD_NAME, FLOAT, FROM_LIST, GE, GORNULL, GROUP_CLAUSE, GT, HAVING_CLAUSE, IDENTIFIER, INLIST_CONSTRAINT, INSIDE, INTEGER, LE, LIMIT_CLAUSE, LITERAL_all, LITERAL_and, LITERAL_as, LITERAL_avg, LITERAL_bigint, LITERAL_boolean, LITERAL_by, LITERAL_coalesce, LITERAL_count, LITERAL_desc, LITERAL_distinct, LITERAL_double, LITERAL_explain, LITERAL_false, LITERAL_from, LITERAL_greatest, LITERAL_group, LITERAL_having, LITERAL_in, LITERAL_integer, LITERAL_is, LITERAL_least, LITERAL_like, LITERAL_limit, LITERAL_lower, LITERAL_max, LITERAL_min, LITERAL_not, LITERAL_null, LITERAL_numeric, LITERAL_offset, LITERAL_or, LITERAL_order, LITERAL_precision, LITERAL_real, LITERAL_select, LITERAL_smallint, LITERAL_stddev, LITERAL_strpos, LITERAL_substr, LITERAL_sum, LITERAL_text, LITERAL_true, LITERAL_union, LITERAL_upper, LITERAL_where, LT, MINUS, NOT_CONSTRAINT, NOT_EQ, NULL_CONSTRAINT, NULL_TREE_LOOKAHEAD, OPEN_PAREN, OR_CONSTRAINT_SET, ORDER_CLAUSE, ORDER_DESC, OVERLAP, PERCENT, PLUS, POWER, QUOTED_STRING, SAFE_FUNCTION, SELECT_LIST, SELECT_VALUE, SEMI, SQL_STATEMENT, SUBQUERY, SUBQUERY_CONSTRAINT, SURROUND, TABLE, TABLE_ALIAS, TABLE_NAME, TYPECAST, UNSAFE_FUNCTION, VERTBAR, WHERE_CLAUSE, WS
-
-
Constructor Summary
Constructors Constructor Description SqlTreeParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abstract_constraint(antlr.collections.AST _t)
void
abstract_constraint_list(antlr.collections.AST _t)
void
abstract_constraint_list_notand(antlr.collections.AST _t)
void
abstract_constraint_list_notor(antlr.collections.AST _t)
void
abstract_table(antlr.collections.AST _t)
void
abstract_value(antlr.collections.AST _t)
void
and_constraint_set(antlr.collections.AST _t)
void
comparison_op(antlr.collections.AST _t)
void
constant(antlr.collections.AST _t)
void
constraint(antlr.collections.AST _t)
void
field(antlr.collections.AST _t)
void
field_alias(antlr.collections.AST _t)
void
field_name(antlr.collections.AST _t)
void
from_list(antlr.collections.AST _t)
void
group_clause(antlr.collections.AST _t)
void
having_clause(antlr.collections.AST _t)
void
inlist_constraint(antlr.collections.AST _t)
void
limit_clause(antlr.collections.AST _t)
void
n_abstract_constraint(antlr.collections.AST _t)
void
n_abstract_constraint_list(antlr.collections.AST _t)
void
n_abstract_constraint_list_notand(antlr.collections.AST _t)
void
n_abstract_constraint_list_notor(antlr.collections.AST _t)
void
n_and_constraint_set(antlr.collections.AST _t)
void
n_constraint(antlr.collections.AST _t)
void
n_not_constraint(antlr.collections.AST _t)
void
n_null_constraint(antlr.collections.AST _t)
void
n_or_constraint_set(antlr.collections.AST _t)
void
not_constraint(antlr.collections.AST _t)
void
null_constraint(antlr.collections.AST _t)
void
or_constraint_set(antlr.collections.AST _t)
void
order_clause(antlr.collections.AST _t)
void
orderby_value(antlr.collections.AST _t)
void
safe_function(antlr.collections.AST _t)
void
select_list(antlr.collections.AST _t)
void
select_value(antlr.collections.AST _t)
void
sql(antlr.collections.AST _t)
void
sql_statement(antlr.collections.AST _t)
void
start_rule(antlr.collections.AST _t)
void
subquery(antlr.collections.AST _t)
void
subquery_constraint(antlr.collections.AST _t)
void
table(antlr.collections.AST _t)
void
table_alias(antlr.collections.AST _t)
void
table_name(antlr.collections.AST _t)
void
typecast(antlr.collections.AST _t)
void
unsafe_function(antlr.collections.AST _t)
void
where_clause(antlr.collections.AST _t)
-
-
-
Method Detail
-
start_rule
public final void start_rule(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
sql
public final void sql(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
sql_statement
public final void sql_statement(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
select_list
public final void select_list(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
from_list
public final void from_list(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
where_clause
public final void where_clause(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
group_clause
public final void group_clause(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
having_clause
public final void having_clause(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
order_clause
public final void order_clause(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
limit_clause
public final void limit_clause(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
select_value
public final void select_value(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
abstract_table
public final void abstract_table(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
abstract_constraint
public final void abstract_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
abstract_value
public final void abstract_value(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
orderby_value
public final void orderby_value(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
field_alias
public final void field_alias(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
table
public final void table(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
subquery
public final void subquery(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
unsafe_function
public final void unsafe_function(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
safe_function
public final void safe_function(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
typecast
public final void typecast(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
constant
public final void constant(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
field
public final void field(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
table_name
public final void table_name(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
table_alias
public final void table_alias(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
field_name
public final void field_name(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
constraint
public final void constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
not_constraint
public final void not_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
and_constraint_set
public final void and_constraint_set(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
or_constraint_set
public final void or_constraint_set(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
subquery_constraint
public final void subquery_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
inlist_constraint
public final void inlist_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
null_constraint
public final void null_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
comparison_op
public final void comparison_op(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_abstract_constraint
public final void n_abstract_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_abstract_constraint_list
public final void n_abstract_constraint_list(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_abstract_constraint_list_notor
public final void n_abstract_constraint_list_notor(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_abstract_constraint_list_notand
public final void n_abstract_constraint_list_notand(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
abstract_constraint_list
public final void abstract_constraint_list(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
abstract_constraint_list_notand
public final void abstract_constraint_list_notand(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
abstract_constraint_list_notor
public final void abstract_constraint_list_notor(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_constraint
public final void n_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_not_constraint
public final void n_not_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_and_constraint_set
public final void n_and_constraint_set(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_or_constraint_set
public final void n_or_constraint_set(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
n_null_constraint
public final void n_null_constraint(antlr.collections.AST _t) throws antlr.RecognitionException
- Throws:
antlr.RecognitionException
-
-