All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.jnosql.query.grammar.data.JDQLParser Maven / Gradle / Ivy

// Generated from org/eclipse/jnosql/query/grammar/data/JDQL.g4 by ANTLR 4.9.3
package org.eclipse.jnosql.query.grammar.data;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public class JDQLParser extends Parser {
	static { RuntimeMetaData.checkVersion("4.9.3", RuntimeMetaData.VERSION); }

	protected static final DFA[] _decisionToDFA;
	protected static final PredictionContextCache _sharedContextCache =
		new PredictionContextCache();
	public static final int
		T__0=1, T__1=2, T__2=3, T__3=4, T__4=5, T__5=6, T__6=7, T__7=8, T__8=9, 
		T__9=10, T__10=11, T__11=12, SELECT=13, UPDATE=14, DELETE=15, FROM=16, 
		WHERE=17, SET=18, ORDER=19, BY=20, NOT=21, IN=22, IS=23, NULL=24, COUNT=25, 
		TRUE=26, FALSE=27, ASC=28, DESC=29, AND=30, OR=31, LOCAL_DATE=32, LOCAL_DATETIME=33, 
		LOCAL_TIME=34, BETWEEN=35, LIKE=36, THIS=37, LOCAL=38, DATE=39, DATETIME=40, 
		TIME=41, EQ=42, GT=43, LT=44, NEQ=45, GTEQ=46, LTEQ=47, PLUS=48, MINUS=49, 
		MUL=50, DIV=51, CONCAT=52, COMMA=53, DOT=54, LPAREN=55, RPAREN=56, COLON=57, 
		QUESTION=58, FULLY_QUALIFIED_IDENTIFIER=59, IDENTIFIER=60, STRING=61, 
		INTEGER=62, DOUBLE=63, WS=64, LINE_COMMENT=65, BLOCK_COMMENT=66;
	public static final int
		RULE_statement = 0, RULE_select_statement = 1, RULE_update_statement = 2, 
		RULE_delete_statement = 3, RULE_from_clause = 4, RULE_where_clause = 5, 
		RULE_set_clause = 6, RULE_update_item = 7, RULE_select_clause = 8, RULE_select_list = 9, 
		RULE_aggregate_expression = 10, RULE_orderby_clause = 11, RULE_orderby_item = 12, 
		RULE_conditional_expression = 13, RULE_comparison_expression = 14, RULE_comparison_operator = 15, 
		RULE_between_expression = 16, RULE_like_expression = 17, RULE_in_expression = 18, 
		RULE_in_item = 19, RULE_null_comparison_expression = 20, RULE_scalar_expression = 21, 
		RULE_primary_expression = 22, RULE_function_expression = 23, RULE_special_expression = 24, 
		RULE_state_field_path_expression = 25, RULE_entity_name = 26, RULE_enum_literal = 27, 
		RULE_input_parameter = 28, RULE_literal = 29;
	private static String[] makeRuleNames() {
		return new String[] {
			"statement", "select_statement", "update_statement", "delete_statement", 
			"from_clause", "where_clause", "set_clause", "update_item", "select_clause", 
			"select_list", "aggregate_expression", "orderby_clause", "orderby_item", 
			"conditional_expression", "comparison_expression", "comparison_operator", 
			"between_expression", "like_expression", "in_expression", "in_item", 
			"null_comparison_expression", "scalar_expression", "primary_expression", 
			"function_expression", "special_expression", "state_field_path_expression", 
			"entity_name", "enum_literal", "input_parameter", "literal"
		};
	}
	public static final String[] ruleNames = makeRuleNames();

	private static String[] makeLiteralNames() {
		return new String[] {
			null, "'abs('", "'ABS('", "'length('", "'LENGTH('", "'lower('", "'LOWER('", 
			"'upper('", "'UPPER('", "'left('", "'LEFT('", "'right('", "'RIGHT('", 
			null, null, null, null, null, null, null, null, null, null, null, null, 
			null, null, null, null, null, null, null, null, null, null, null, null, 
			null, null, null, null, null, "'='", "'>'", "'<'", "'<>'", "'>='", "'<='", 
			"'+'", "'-'", "'*'", "'/'", "'||'", "','", "'.'", "'('", "')'", "':'", 
			"'?'"
		};
	}
	private static final String[] _LITERAL_NAMES = makeLiteralNames();
	private static String[] makeSymbolicNames() {
		return new String[] {
			null, null, null, null, null, null, null, null, null, null, null, null, 
			null, "SELECT", "UPDATE", "DELETE", "FROM", "WHERE", "SET", "ORDER", 
			"BY", "NOT", "IN", "IS", "NULL", "COUNT", "TRUE", "FALSE", "ASC", "DESC", 
			"AND", "OR", "LOCAL_DATE", "LOCAL_DATETIME", "LOCAL_TIME", "BETWEEN", 
			"LIKE", "THIS", "LOCAL", "DATE", "DATETIME", "TIME", "EQ", "GT", "LT", 
			"NEQ", "GTEQ", "LTEQ", "PLUS", "MINUS", "MUL", "DIV", "CONCAT", "COMMA", 
			"DOT", "LPAREN", "RPAREN", "COLON", "QUESTION", "FULLY_QUALIFIED_IDENTIFIER", 
			"IDENTIFIER", "STRING", "INTEGER", "DOUBLE", "WS", "LINE_COMMENT", "BLOCK_COMMENT"
		};
	}
	private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
	public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);

	/**
	 * @deprecated Use {@link #VOCABULARY} instead.
	 */
	@Deprecated
	public static final String[] tokenNames;
	static {
		tokenNames = new String[_SYMBOLIC_NAMES.length];
		for (int i = 0; i < tokenNames.length; i++) {
			tokenNames[i] = VOCABULARY.getLiteralName(i);
			if (tokenNames[i] == null) {
				tokenNames[i] = VOCABULARY.getSymbolicName(i);
			}

			if (tokenNames[i] == null) {
				tokenNames[i] = "";
			}
		}
	}

	@Override
	@Deprecated
	public String[] getTokenNames() {
		return tokenNames;
	}

	@Override

	public Vocabulary getVocabulary() {
		return VOCABULARY;
	}

	@Override
	public String getGrammarFileName() { return "JDQL.g4"; }

	@Override
	public String[] getRuleNames() { return ruleNames; }

	@Override
	public String getSerializedATN() { return _serializedATN; }

	@Override
	public ATN getATN() { return _ATN; }

	public JDQLParser(TokenStream input) {
		super(input);
		_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
	}

	public static class StatementContext extends ParserRuleContext {
		public Select_statementContext select_statement() {
			return getRuleContext(Select_statementContext.class,0);
		}
		public Update_statementContext update_statement() {
			return getRuleContext(Update_statementContext.class,0);
		}
		public Delete_statementContext delete_statement() {
			return getRuleContext(Delete_statementContext.class,0);
		}
		public StatementContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_statement; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterStatement(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitStatement(this);
		}
	}

	public final StatementContext statement() throws RecognitionException {
		StatementContext _localctx = new StatementContext(_ctx, getState());
		enterRule(_localctx, 0, RULE_statement);
		try {
			setState(63);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case EOF:
			case SELECT:
			case FROM:
			case WHERE:
			case ORDER:
				enterOuterAlt(_localctx, 1);
				{
				setState(60);
				select_statement();
				}
				break;
			case UPDATE:
				enterOuterAlt(_localctx, 2);
				{
				setState(61);
				update_statement();
				}
				break;
			case DELETE:
				enterOuterAlt(_localctx, 3);
				{
				setState(62);
				delete_statement();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Select_statementContext extends ParserRuleContext {
		public Select_clauseContext select_clause() {
			return getRuleContext(Select_clauseContext.class,0);
		}
		public From_clauseContext from_clause() {
			return getRuleContext(From_clauseContext.class,0);
		}
		public Where_clauseContext where_clause() {
			return getRuleContext(Where_clauseContext.class,0);
		}
		public Orderby_clauseContext orderby_clause() {
			return getRuleContext(Orderby_clauseContext.class,0);
		}
		public Select_statementContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_select_statement; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterSelect_statement(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitSelect_statement(this);
		}
	}

	public final Select_statementContext select_statement() throws RecognitionException {
		Select_statementContext _localctx = new Select_statementContext(_ctx, getState());
		enterRule(_localctx, 2, RULE_select_statement);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(66);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==SELECT) {
				{
				setState(65);
				select_clause();
				}
			}

			setState(69);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==FROM) {
				{
				setState(68);
				from_clause();
				}
			}

			setState(72);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==WHERE) {
				{
				setState(71);
				where_clause();
				}
			}

			setState(75);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==ORDER) {
				{
				setState(74);
				orderby_clause();
				}
			}

			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Update_statementContext extends ParserRuleContext {
		public TerminalNode UPDATE() { return getToken(JDQLParser.UPDATE, 0); }
		public Entity_nameContext entity_name() {
			return getRuleContext(Entity_nameContext.class,0);
		}
		public Set_clauseContext set_clause() {
			return getRuleContext(Set_clauseContext.class,0);
		}
		public Where_clauseContext where_clause() {
			return getRuleContext(Where_clauseContext.class,0);
		}
		public Update_statementContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_update_statement; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterUpdate_statement(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitUpdate_statement(this);
		}
	}

	public final Update_statementContext update_statement() throws RecognitionException {
		Update_statementContext _localctx = new Update_statementContext(_ctx, getState());
		enterRule(_localctx, 4, RULE_update_statement);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(77);
			match(UPDATE);
			setState(78);
			entity_name();
			setState(79);
			set_clause();
			setState(81);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==WHERE) {
				{
				setState(80);
				where_clause();
				}
			}

			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Delete_statementContext extends ParserRuleContext {
		public TerminalNode DELETE() { return getToken(JDQLParser.DELETE, 0); }
		public From_clauseContext from_clause() {
			return getRuleContext(From_clauseContext.class,0);
		}
		public Where_clauseContext where_clause() {
			return getRuleContext(Where_clauseContext.class,0);
		}
		public Delete_statementContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_delete_statement; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterDelete_statement(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitDelete_statement(this);
		}
	}

	public final Delete_statementContext delete_statement() throws RecognitionException {
		Delete_statementContext _localctx = new Delete_statementContext(_ctx, getState());
		enterRule(_localctx, 6, RULE_delete_statement);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(83);
			match(DELETE);
			setState(84);
			from_clause();
			setState(86);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==WHERE) {
				{
				setState(85);
				where_clause();
				}
			}

			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class From_clauseContext extends ParserRuleContext {
		public TerminalNode FROM() { return getToken(JDQLParser.FROM, 0); }
		public Entity_nameContext entity_name() {
			return getRuleContext(Entity_nameContext.class,0);
		}
		public From_clauseContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_from_clause; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterFrom_clause(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitFrom_clause(this);
		}
	}

	public final From_clauseContext from_clause() throws RecognitionException {
		From_clauseContext _localctx = new From_clauseContext(_ctx, getState());
		enterRule(_localctx, 8, RULE_from_clause);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(88);
			match(FROM);
			setState(89);
			entity_name();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Where_clauseContext extends ParserRuleContext {
		public TerminalNode WHERE() { return getToken(JDQLParser.WHERE, 0); }
		public Conditional_expressionContext conditional_expression() {
			return getRuleContext(Conditional_expressionContext.class,0);
		}
		public Where_clauseContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_where_clause; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterWhere_clause(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitWhere_clause(this);
		}
	}

	public final Where_clauseContext where_clause() throws RecognitionException {
		Where_clauseContext _localctx = new Where_clauseContext(_ctx, getState());
		enterRule(_localctx, 10, RULE_where_clause);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(91);
			match(WHERE);
			setState(92);
			conditional_expression(0);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Set_clauseContext extends ParserRuleContext {
		public TerminalNode SET() { return getToken(JDQLParser.SET, 0); }
		public List update_item() {
			return getRuleContexts(Update_itemContext.class);
		}
		public Update_itemContext update_item(int i) {
			return getRuleContext(Update_itemContext.class,i);
		}
		public List COMMA() { return getTokens(JDQLParser.COMMA); }
		public TerminalNode COMMA(int i) {
			return getToken(JDQLParser.COMMA, i);
		}
		public Set_clauseContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_set_clause; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterSet_clause(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitSet_clause(this);
		}
	}

	public final Set_clauseContext set_clause() throws RecognitionException {
		Set_clauseContext _localctx = new Set_clauseContext(_ctx, getState());
		enterRule(_localctx, 12, RULE_set_clause);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(94);
			match(SET);
			setState(95);
			update_item();
			setState(100);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==COMMA) {
				{
				{
				setState(96);
				match(COMMA);
				setState(97);
				update_item();
				}
				}
				setState(102);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Update_itemContext extends ParserRuleContext {
		public State_field_path_expressionContext state_field_path_expression() {
			return getRuleContext(State_field_path_expressionContext.class,0);
		}
		public TerminalNode EQ() { return getToken(JDQLParser.EQ, 0); }
		public Scalar_expressionContext scalar_expression() {
			return getRuleContext(Scalar_expressionContext.class,0);
		}
		public TerminalNode NULL() { return getToken(JDQLParser.NULL, 0); }
		public Update_itemContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_update_item; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterUpdate_item(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitUpdate_item(this);
		}
	}

	public final Update_itemContext update_item() throws RecognitionException {
		Update_itemContext _localctx = new Update_itemContext(_ctx, getState());
		enterRule(_localctx, 14, RULE_update_item);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(103);
			state_field_path_expression();
			setState(104);
			match(EQ);
			setState(107);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case T__0:
			case T__1:
			case T__2:
			case T__3:
			case T__4:
			case T__5:
			case T__6:
			case T__7:
			case T__8:
			case T__9:
			case T__10:
			case T__11:
			case TRUE:
			case FALSE:
			case LOCAL_DATE:
			case LOCAL_DATETIME:
			case LOCAL_TIME:
			case LPAREN:
			case COLON:
			case QUESTION:
			case FULLY_QUALIFIED_IDENTIFIER:
			case IDENTIFIER:
			case STRING:
			case INTEGER:
			case DOUBLE:
				{
				setState(105);
				scalar_expression(0);
				}
				break;
			case NULL:
				{
				setState(106);
				match(NULL);
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Select_clauseContext extends ParserRuleContext {
		public TerminalNode SELECT() { return getToken(JDQLParser.SELECT, 0); }
		public Select_listContext select_list() {
			return getRuleContext(Select_listContext.class,0);
		}
		public Select_clauseContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_select_clause; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterSelect_clause(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitSelect_clause(this);
		}
	}

	public final Select_clauseContext select_clause() throws RecognitionException {
		Select_clauseContext _localctx = new Select_clauseContext(_ctx, getState());
		enterRule(_localctx, 16, RULE_select_clause);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(109);
			match(SELECT);
			setState(110);
			select_list();
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Select_listContext extends ParserRuleContext {
		public List state_field_path_expression() {
			return getRuleContexts(State_field_path_expressionContext.class);
		}
		public State_field_path_expressionContext state_field_path_expression(int i) {
			return getRuleContext(State_field_path_expressionContext.class,i);
		}
		public List COMMA() { return getTokens(JDQLParser.COMMA); }
		public TerminalNode COMMA(int i) {
			return getToken(JDQLParser.COMMA, i);
		}
		public Aggregate_expressionContext aggregate_expression() {
			return getRuleContext(Aggregate_expressionContext.class,0);
		}
		public Select_listContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_select_list; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterSelect_list(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitSelect_list(this);
		}
	}

	public final Select_listContext select_list() throws RecognitionException {
		Select_listContext _localctx = new Select_listContext(_ctx, getState());
		enterRule(_localctx, 18, RULE_select_list);
		int _la;
		try {
			setState(121);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case FULLY_QUALIFIED_IDENTIFIER:
			case IDENTIFIER:
				enterOuterAlt(_localctx, 1);
				{
				setState(112);
				state_field_path_expression();
				setState(117);
				_errHandler.sync(this);
				_la = _input.LA(1);
				while (_la==COMMA) {
					{
					{
					setState(113);
					match(COMMA);
					setState(114);
					state_field_path_expression();
					}
					}
					setState(119);
					_errHandler.sync(this);
					_la = _input.LA(1);
				}
				}
				break;
			case COUNT:
				enterOuterAlt(_localctx, 2);
				{
				setState(120);
				aggregate_expression();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Aggregate_expressionContext extends ParserRuleContext {
		public TerminalNode COUNT() { return getToken(JDQLParser.COUNT, 0); }
		public TerminalNode LPAREN() { return getToken(JDQLParser.LPAREN, 0); }
		public TerminalNode THIS() { return getToken(JDQLParser.THIS, 0); }
		public TerminalNode RPAREN() { return getToken(JDQLParser.RPAREN, 0); }
		public Aggregate_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_aggregate_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterAggregate_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitAggregate_expression(this);
		}
	}

	public final Aggregate_expressionContext aggregate_expression() throws RecognitionException {
		Aggregate_expressionContext _localctx = new Aggregate_expressionContext(_ctx, getState());
		enterRule(_localctx, 20, RULE_aggregate_expression);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(123);
			match(COUNT);
			setState(124);
			match(LPAREN);
			setState(125);
			match(THIS);
			setState(126);
			match(RPAREN);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Orderby_clauseContext extends ParserRuleContext {
		public TerminalNode ORDER() { return getToken(JDQLParser.ORDER, 0); }
		public TerminalNode BY() { return getToken(JDQLParser.BY, 0); }
		public List orderby_item() {
			return getRuleContexts(Orderby_itemContext.class);
		}
		public Orderby_itemContext orderby_item(int i) {
			return getRuleContext(Orderby_itemContext.class,i);
		}
		public List COMMA() { return getTokens(JDQLParser.COMMA); }
		public TerminalNode COMMA(int i) {
			return getToken(JDQLParser.COMMA, i);
		}
		public Orderby_clauseContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_orderby_clause; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterOrderby_clause(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitOrderby_clause(this);
		}
	}

	public final Orderby_clauseContext orderby_clause() throws RecognitionException {
		Orderby_clauseContext _localctx = new Orderby_clauseContext(_ctx, getState());
		enterRule(_localctx, 22, RULE_orderby_clause);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(128);
			match(ORDER);
			setState(129);
			match(BY);
			setState(130);
			orderby_item();
			setState(135);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==COMMA) {
				{
				{
				setState(131);
				match(COMMA);
				setState(132);
				orderby_item();
				}
				}
				setState(137);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Orderby_itemContext extends ParserRuleContext {
		public State_field_path_expressionContext state_field_path_expression() {
			return getRuleContext(State_field_path_expressionContext.class,0);
		}
		public TerminalNode ASC() { return getToken(JDQLParser.ASC, 0); }
		public TerminalNode DESC() { return getToken(JDQLParser.DESC, 0); }
		public Orderby_itemContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_orderby_item; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterOrderby_item(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitOrderby_item(this);
		}
	}

	public final Orderby_itemContext orderby_item() throws RecognitionException {
		Orderby_itemContext _localctx = new Orderby_itemContext(_ctx, getState());
		enterRule(_localctx, 24, RULE_orderby_item);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(138);
			state_field_path_expression();
			setState(140);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==ASC || _la==DESC) {
				{
				setState(139);
				_la = _input.LA(1);
				if ( !(_la==ASC || _la==DESC) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				}
			}

			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Conditional_expressionContext extends ParserRuleContext {
		public TerminalNode LPAREN() { return getToken(JDQLParser.LPAREN, 0); }
		public List conditional_expression() {
			return getRuleContexts(Conditional_expressionContext.class);
		}
		public Conditional_expressionContext conditional_expression(int i) {
			return getRuleContext(Conditional_expressionContext.class,i);
		}
		public TerminalNode RPAREN() { return getToken(JDQLParser.RPAREN, 0); }
		public Null_comparison_expressionContext null_comparison_expression() {
			return getRuleContext(Null_comparison_expressionContext.class,0);
		}
		public In_expressionContext in_expression() {
			return getRuleContext(In_expressionContext.class,0);
		}
		public Between_expressionContext between_expression() {
			return getRuleContext(Between_expressionContext.class,0);
		}
		public Like_expressionContext like_expression() {
			return getRuleContext(Like_expressionContext.class,0);
		}
		public Comparison_expressionContext comparison_expression() {
			return getRuleContext(Comparison_expressionContext.class,0);
		}
		public TerminalNode NOT() { return getToken(JDQLParser.NOT, 0); }
		public TerminalNode AND() { return getToken(JDQLParser.AND, 0); }
		public TerminalNode OR() { return getToken(JDQLParser.OR, 0); }
		public Conditional_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_conditional_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterConditional_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitConditional_expression(this);
		}
	}

	public final Conditional_expressionContext conditional_expression() throws RecognitionException {
		return conditional_expression(0);
	}

	private Conditional_expressionContext conditional_expression(int _p) throws RecognitionException {
		ParserRuleContext _parentctx = _ctx;
		int _parentState = getState();
		Conditional_expressionContext _localctx = new Conditional_expressionContext(_ctx, _parentState);
		Conditional_expressionContext _prevctx = _localctx;
		int _startState = 26;
		enterRecursionRule(_localctx, 26, RULE_conditional_expression, _p);
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(154);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) {
			case 1:
				{
				setState(143);
				match(LPAREN);
				setState(144);
				conditional_expression(0);
				setState(145);
				match(RPAREN);
				}
				break;
			case 2:
				{
				setState(147);
				null_comparison_expression();
				}
				break;
			case 3:
				{
				setState(148);
				in_expression();
				}
				break;
			case 4:
				{
				setState(149);
				between_expression();
				}
				break;
			case 5:
				{
				setState(150);
				like_expression();
				}
				break;
			case 6:
				{
				setState(151);
				comparison_expression();
				}
				break;
			case 7:
				{
				setState(152);
				match(NOT);
				setState(153);
				conditional_expression(3);
				}
				break;
			}
			_ctx.stop = _input.LT(-1);
			setState(164);
			_errHandler.sync(this);
			_alt = getInterpreter().adaptivePredict(_input,15,_ctx);
			while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
				if ( _alt==1 ) {
					if ( _parseListeners!=null ) triggerExitRuleEvent();
					_prevctx = _localctx;
					{
					setState(162);
					_errHandler.sync(this);
					switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
					case 1:
						{
						_localctx = new Conditional_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_conditional_expression);
						setState(156);
						if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
						setState(157);
						match(AND);
						setState(158);
						conditional_expression(3);
						}
						break;
					case 2:
						{
						_localctx = new Conditional_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_conditional_expression);
						setState(159);
						if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
						setState(160);
						match(OR);
						setState(161);
						conditional_expression(2);
						}
						break;
					}
					} 
				}
				setState(166);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,15,_ctx);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			unrollRecursionContexts(_parentctx);
		}
		return _localctx;
	}

	public static class Comparison_expressionContext extends ParserRuleContext {
		public List scalar_expression() {
			return getRuleContexts(Scalar_expressionContext.class);
		}
		public Scalar_expressionContext scalar_expression(int i) {
			return getRuleContext(Scalar_expressionContext.class,i);
		}
		public Comparison_operatorContext comparison_operator() {
			return getRuleContext(Comparison_operatorContext.class,0);
		}
		public Comparison_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_comparison_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterComparison_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitComparison_expression(this);
		}
	}

	public final Comparison_expressionContext comparison_expression() throws RecognitionException {
		Comparison_expressionContext _localctx = new Comparison_expressionContext(_ctx, getState());
		enterRule(_localctx, 28, RULE_comparison_expression);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(167);
			scalar_expression(0);
			setState(168);
			comparison_operator();
			setState(169);
			scalar_expression(0);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Comparison_operatorContext extends ParserRuleContext {
		public TerminalNode EQ() { return getToken(JDQLParser.EQ, 0); }
		public TerminalNode GT() { return getToken(JDQLParser.GT, 0); }
		public TerminalNode GTEQ() { return getToken(JDQLParser.GTEQ, 0); }
		public TerminalNode LT() { return getToken(JDQLParser.LT, 0); }
		public TerminalNode LTEQ() { return getToken(JDQLParser.LTEQ, 0); }
		public TerminalNode NEQ() { return getToken(JDQLParser.NEQ, 0); }
		public Comparison_operatorContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_comparison_operator; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterComparison_operator(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitComparison_operator(this);
		}
	}

	public final Comparison_operatorContext comparison_operator() throws RecognitionException {
		Comparison_operatorContext _localctx = new Comparison_operatorContext(_ctx, getState());
		enterRule(_localctx, 30, RULE_comparison_operator);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(171);
			_la = _input.LA(1);
			if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << EQ) | (1L << GT) | (1L << LT) | (1L << NEQ) | (1L << GTEQ) | (1L << LTEQ))) != 0)) ) {
			_errHandler.recoverInline(this);
			}
			else {
				if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
				_errHandler.reportMatch(this);
				consume();
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Between_expressionContext extends ParserRuleContext {
		public List scalar_expression() {
			return getRuleContexts(Scalar_expressionContext.class);
		}
		public Scalar_expressionContext scalar_expression(int i) {
			return getRuleContext(Scalar_expressionContext.class,i);
		}
		public TerminalNode BETWEEN() { return getToken(JDQLParser.BETWEEN, 0); }
		public TerminalNode AND() { return getToken(JDQLParser.AND, 0); }
		public TerminalNode NOT() { return getToken(JDQLParser.NOT, 0); }
		public Between_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_between_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterBetween_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitBetween_expression(this);
		}
	}

	public final Between_expressionContext between_expression() throws RecognitionException {
		Between_expressionContext _localctx = new Between_expressionContext(_ctx, getState());
		enterRule(_localctx, 32, RULE_between_expression);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(173);
			scalar_expression(0);
			setState(175);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==NOT) {
				{
				setState(174);
				match(NOT);
				}
			}

			setState(177);
			match(BETWEEN);
			setState(178);
			scalar_expression(0);
			setState(179);
			match(AND);
			setState(180);
			scalar_expression(0);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Like_expressionContext extends ParserRuleContext {
		public Scalar_expressionContext scalar_expression() {
			return getRuleContext(Scalar_expressionContext.class,0);
		}
		public TerminalNode LIKE() { return getToken(JDQLParser.LIKE, 0); }
		public TerminalNode STRING() { return getToken(JDQLParser.STRING, 0); }
		public Input_parameterContext input_parameter() {
			return getRuleContext(Input_parameterContext.class,0);
		}
		public TerminalNode NOT() { return getToken(JDQLParser.NOT, 0); }
		public Like_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_like_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterLike_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitLike_expression(this);
		}
	}

	public final Like_expressionContext like_expression() throws RecognitionException {
		Like_expressionContext _localctx = new Like_expressionContext(_ctx, getState());
		enterRule(_localctx, 34, RULE_like_expression);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(182);
			scalar_expression(0);
			setState(184);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==NOT) {
				{
				setState(183);
				match(NOT);
				}
			}

			setState(186);
			match(LIKE);
			setState(189);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case STRING:
				{
				setState(187);
				match(STRING);
				}
				break;
			case COLON:
			case QUESTION:
				{
				setState(188);
				input_parameter();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class In_expressionContext extends ParserRuleContext {
		public State_field_path_expressionContext state_field_path_expression() {
			return getRuleContext(State_field_path_expressionContext.class,0);
		}
		public TerminalNode IN() { return getToken(JDQLParser.IN, 0); }
		public TerminalNode LPAREN() { return getToken(JDQLParser.LPAREN, 0); }
		public List in_item() {
			return getRuleContexts(In_itemContext.class);
		}
		public In_itemContext in_item(int i) {
			return getRuleContext(In_itemContext.class,i);
		}
		public TerminalNode RPAREN() { return getToken(JDQLParser.RPAREN, 0); }
		public TerminalNode NOT() { return getToken(JDQLParser.NOT, 0); }
		public List COMMA() { return getTokens(JDQLParser.COMMA); }
		public TerminalNode COMMA(int i) {
			return getToken(JDQLParser.COMMA, i);
		}
		public In_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_in_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterIn_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitIn_expression(this);
		}
	}

	public final In_expressionContext in_expression() throws RecognitionException {
		In_expressionContext _localctx = new In_expressionContext(_ctx, getState());
		enterRule(_localctx, 36, RULE_in_expression);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(191);
			state_field_path_expression();
			setState(193);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==NOT) {
				{
				setState(192);
				match(NOT);
				}
			}

			setState(195);
			match(IN);
			setState(196);
			match(LPAREN);
			setState(197);
			in_item();
			setState(202);
			_errHandler.sync(this);
			_la = _input.LA(1);
			while (_la==COMMA) {
				{
				{
				setState(198);
				match(COMMA);
				setState(199);
				in_item();
				}
				}
				setState(204);
				_errHandler.sync(this);
				_la = _input.LA(1);
			}
			setState(205);
			match(RPAREN);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class In_itemContext extends ParserRuleContext {
		public LiteralContext literal() {
			return getRuleContext(LiteralContext.class,0);
		}
		public Enum_literalContext enum_literal() {
			return getRuleContext(Enum_literalContext.class,0);
		}
		public Input_parameterContext input_parameter() {
			return getRuleContext(Input_parameterContext.class,0);
		}
		public In_itemContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_in_item; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterIn_item(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitIn_item(this);
		}
	}

	public final In_itemContext in_item() throws RecognitionException {
		In_itemContext _localctx = new In_itemContext(_ctx, getState());
		enterRule(_localctx, 38, RULE_in_item);
		try {
			setState(210);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case STRING:
			case INTEGER:
			case DOUBLE:
				enterOuterAlt(_localctx, 1);
				{
				setState(207);
				literal();
				}
				break;
			case FULLY_QUALIFIED_IDENTIFIER:
			case IDENTIFIER:
				enterOuterAlt(_localctx, 2);
				{
				setState(208);
				enum_literal();
				}
				break;
			case COLON:
			case QUESTION:
				enterOuterAlt(_localctx, 3);
				{
				setState(209);
				input_parameter();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Null_comparison_expressionContext extends ParserRuleContext {
		public State_field_path_expressionContext state_field_path_expression() {
			return getRuleContext(State_field_path_expressionContext.class,0);
		}
		public TerminalNode IS() { return getToken(JDQLParser.IS, 0); }
		public TerminalNode NULL() { return getToken(JDQLParser.NULL, 0); }
		public TerminalNode NOT() { return getToken(JDQLParser.NOT, 0); }
		public Null_comparison_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_null_comparison_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterNull_comparison_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitNull_comparison_expression(this);
		}
	}

	public final Null_comparison_expressionContext null_comparison_expression() throws RecognitionException {
		Null_comparison_expressionContext _localctx = new Null_comparison_expressionContext(_ctx, getState());
		enterRule(_localctx, 40, RULE_null_comparison_expression);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(212);
			state_field_path_expression();
			setState(213);
			match(IS);
			setState(215);
			_errHandler.sync(this);
			_la = _input.LA(1);
			if (_la==NOT) {
				{
				setState(214);
				match(NOT);
				}
			}

			setState(217);
			match(NULL);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Scalar_expressionContext extends ParserRuleContext {
		public TerminalNode LPAREN() { return getToken(JDQLParser.LPAREN, 0); }
		public List scalar_expression() {
			return getRuleContexts(Scalar_expressionContext.class);
		}
		public Scalar_expressionContext scalar_expression(int i) {
			return getRuleContext(Scalar_expressionContext.class,i);
		}
		public TerminalNode RPAREN() { return getToken(JDQLParser.RPAREN, 0); }
		public Primary_expressionContext primary_expression() {
			return getRuleContext(Primary_expressionContext.class,0);
		}
		public TerminalNode MUL() { return getToken(JDQLParser.MUL, 0); }
		public TerminalNode DIV() { return getToken(JDQLParser.DIV, 0); }
		public TerminalNode PLUS() { return getToken(JDQLParser.PLUS, 0); }
		public TerminalNode MINUS() { return getToken(JDQLParser.MINUS, 0); }
		public TerminalNode CONCAT() { return getToken(JDQLParser.CONCAT, 0); }
		public Scalar_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_scalar_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterScalar_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitScalar_expression(this);
		}
	}

	public final Scalar_expressionContext scalar_expression() throws RecognitionException {
		return scalar_expression(0);
	}

	private Scalar_expressionContext scalar_expression(int _p) throws RecognitionException {
		ParserRuleContext _parentctx = _ctx;
		int _parentState = getState();
		Scalar_expressionContext _localctx = new Scalar_expressionContext(_ctx, _parentState);
		Scalar_expressionContext _prevctx = _localctx;
		int _startState = 42;
		enterRecursionRule(_localctx, 42, RULE_scalar_expression, _p);
		try {
			int _alt;
			enterOuterAlt(_localctx, 1);
			{
			setState(225);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case LPAREN:
				{
				setState(220);
				match(LPAREN);
				setState(221);
				scalar_expression(0);
				setState(222);
				match(RPAREN);
				}
				break;
			case T__0:
			case T__1:
			case T__2:
			case T__3:
			case T__4:
			case T__5:
			case T__6:
			case T__7:
			case T__8:
			case T__9:
			case T__10:
			case T__11:
			case TRUE:
			case FALSE:
			case LOCAL_DATE:
			case LOCAL_DATETIME:
			case LOCAL_TIME:
			case COLON:
			case QUESTION:
			case FULLY_QUALIFIED_IDENTIFIER:
			case IDENTIFIER:
			case STRING:
			case INTEGER:
			case DOUBLE:
				{
				setState(224);
				primary_expression();
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
			_ctx.stop = _input.LT(-1);
			setState(244);
			_errHandler.sync(this);
			_alt = getInterpreter().adaptivePredict(_input,25,_ctx);
			while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
				if ( _alt==1 ) {
					if ( _parseListeners!=null ) triggerExitRuleEvent();
					_prevctx = _localctx;
					{
					setState(242);
					_errHandler.sync(this);
					switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) {
					case 1:
						{
						_localctx = new Scalar_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_scalar_expression);
						setState(227);
						if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)");
						setState(228);
						match(MUL);
						setState(229);
						scalar_expression(6);
						}
						break;
					case 2:
						{
						_localctx = new Scalar_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_scalar_expression);
						setState(230);
						if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)");
						setState(231);
						match(DIV);
						setState(232);
						scalar_expression(5);
						}
						break;
					case 3:
						{
						_localctx = new Scalar_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_scalar_expression);
						setState(233);
						if (!(precpred(_ctx, 3))) throw new FailedPredicateException(this, "precpred(_ctx, 3)");
						setState(234);
						match(PLUS);
						setState(235);
						scalar_expression(4);
						}
						break;
					case 4:
						{
						_localctx = new Scalar_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_scalar_expression);
						setState(236);
						if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)");
						setState(237);
						match(MINUS);
						setState(238);
						scalar_expression(3);
						}
						break;
					case 5:
						{
						_localctx = new Scalar_expressionContext(_parentctx, _parentState);
						pushNewRecursionContext(_localctx, _startState, RULE_scalar_expression);
						setState(239);
						if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)");
						setState(240);
						match(CONCAT);
						setState(241);
						scalar_expression(2);
						}
						break;
					}
					} 
				}
				setState(246);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,25,_ctx);
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			unrollRecursionContexts(_parentctx);
		}
		return _localctx;
	}

	public static class Primary_expressionContext extends ParserRuleContext {
		public Function_expressionContext function_expression() {
			return getRuleContext(Function_expressionContext.class,0);
		}
		public Special_expressionContext special_expression() {
			return getRuleContext(Special_expressionContext.class,0);
		}
		public State_field_path_expressionContext state_field_path_expression() {
			return getRuleContext(State_field_path_expressionContext.class,0);
		}
		public Enum_literalContext enum_literal() {
			return getRuleContext(Enum_literalContext.class,0);
		}
		public Input_parameterContext input_parameter() {
			return getRuleContext(Input_parameterContext.class,0);
		}
		public LiteralContext literal() {
			return getRuleContext(LiteralContext.class,0);
		}
		public Primary_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_primary_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterPrimary_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitPrimary_expression(this);
		}
	}

	public final Primary_expressionContext primary_expression() throws RecognitionException {
		Primary_expressionContext _localctx = new Primary_expressionContext(_ctx, getState());
		enterRule(_localctx, 44, RULE_primary_expression);
		try {
			setState(253);
			_errHandler.sync(this);
			switch ( getInterpreter().adaptivePredict(_input,26,_ctx) ) {
			case 1:
				enterOuterAlt(_localctx, 1);
				{
				setState(247);
				function_expression();
				}
				break;
			case 2:
				enterOuterAlt(_localctx, 2);
				{
				setState(248);
				special_expression();
				}
				break;
			case 3:
				enterOuterAlt(_localctx, 3);
				{
				setState(249);
				state_field_path_expression();
				}
				break;
			case 4:
				enterOuterAlt(_localctx, 4);
				{
				setState(250);
				enum_literal();
				}
				break;
			case 5:
				enterOuterAlt(_localctx, 5);
				{
				setState(251);
				input_parameter();
				}
				break;
			case 6:
				enterOuterAlt(_localctx, 6);
				{
				setState(252);
				literal();
				}
				break;
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Function_expressionContext extends ParserRuleContext {
		public List scalar_expression() {
			return getRuleContexts(Scalar_expressionContext.class);
		}
		public Scalar_expressionContext scalar_expression(int i) {
			return getRuleContext(Scalar_expressionContext.class,i);
		}
		public TerminalNode RPAREN() { return getToken(JDQLParser.RPAREN, 0); }
		public TerminalNode COMMA() { return getToken(JDQLParser.COMMA, 0); }
		public Function_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_function_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterFunction_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitFunction_expression(this);
		}
	}

	public final Function_expressionContext function_expression() throws RecognitionException {
		Function_expressionContext _localctx = new Function_expressionContext(_ctx, getState());
		enterRule(_localctx, 46, RULE_function_expression);
		int _la;
		try {
			setState(283);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case T__0:
			case T__1:
				enterOuterAlt(_localctx, 1);
				{
				setState(255);
				_la = _input.LA(1);
				if ( !(_la==T__0 || _la==T__1) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				setState(256);
				scalar_expression(0);
				setState(257);
				match(RPAREN);
				}
				break;
			case T__2:
			case T__3:
				enterOuterAlt(_localctx, 2);
				{
				setState(259);
				_la = _input.LA(1);
				if ( !(_la==T__2 || _la==T__3) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				setState(260);
				scalar_expression(0);
				setState(261);
				match(RPAREN);
				}
				break;
			case T__4:
			case T__5:
				enterOuterAlt(_localctx, 3);
				{
				setState(263);
				_la = _input.LA(1);
				if ( !(_la==T__4 || _la==T__5) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				setState(264);
				scalar_expression(0);
				setState(265);
				match(RPAREN);
				}
				break;
			case T__6:
			case T__7:
				enterOuterAlt(_localctx, 4);
				{
				setState(267);
				_la = _input.LA(1);
				if ( !(_la==T__6 || _la==T__7) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				setState(268);
				scalar_expression(0);
				setState(269);
				match(RPAREN);
				}
				break;
			case T__8:
			case T__9:
				enterOuterAlt(_localctx, 5);
				{
				setState(271);
				_la = _input.LA(1);
				if ( !(_la==T__8 || _la==T__9) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				setState(272);
				scalar_expression(0);
				setState(273);
				match(COMMA);
				setState(274);
				scalar_expression(0);
				setState(275);
				match(RPAREN);
				}
				break;
			case T__10:
			case T__11:
				enterOuterAlt(_localctx, 6);
				{
				setState(277);
				_la = _input.LA(1);
				if ( !(_la==T__10 || _la==T__11) ) {
				_errHandler.recoverInline(this);
				}
				else {
					if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
					_errHandler.reportMatch(this);
					consume();
				}
				setState(278);
				scalar_expression(0);
				setState(279);
				match(COMMA);
				setState(280);
				scalar_expression(0);
				setState(281);
				match(RPAREN);
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Special_expressionContext extends ParserRuleContext {
		public TerminalNode LOCAL_DATE() { return getToken(JDQLParser.LOCAL_DATE, 0); }
		public TerminalNode LOCAL_DATETIME() { return getToken(JDQLParser.LOCAL_DATETIME, 0); }
		public TerminalNode LOCAL_TIME() { return getToken(JDQLParser.LOCAL_TIME, 0); }
		public TerminalNode TRUE() { return getToken(JDQLParser.TRUE, 0); }
		public TerminalNode FALSE() { return getToken(JDQLParser.FALSE, 0); }
		public Special_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_special_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterSpecial_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitSpecial_expression(this);
		}
	}

	public final Special_expressionContext special_expression() throws RecognitionException {
		Special_expressionContext _localctx = new Special_expressionContext(_ctx, getState());
		enterRule(_localctx, 48, RULE_special_expression);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(285);
			_la = _input.LA(1);
			if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TRUE) | (1L << FALSE) | (1L << LOCAL_DATE) | (1L << LOCAL_DATETIME) | (1L << LOCAL_TIME))) != 0)) ) {
			_errHandler.recoverInline(this);
			}
			else {
				if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
				_errHandler.reportMatch(this);
				consume();
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class State_field_path_expressionContext extends ParserRuleContext {
		public List IDENTIFIER() { return getTokens(JDQLParser.IDENTIFIER); }
		public TerminalNode IDENTIFIER(int i) {
			return getToken(JDQLParser.IDENTIFIER, i);
		}
		public List DOT() { return getTokens(JDQLParser.DOT); }
		public TerminalNode DOT(int i) {
			return getToken(JDQLParser.DOT, i);
		}
		public TerminalNode FULLY_QUALIFIED_IDENTIFIER() { return getToken(JDQLParser.FULLY_QUALIFIED_IDENTIFIER, 0); }
		public State_field_path_expressionContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_state_field_path_expression; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterState_field_path_expression(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitState_field_path_expression(this);
		}
	}

	public final State_field_path_expressionContext state_field_path_expression() throws RecognitionException {
		State_field_path_expressionContext _localctx = new State_field_path_expressionContext(_ctx, getState());
		enterRule(_localctx, 50, RULE_state_field_path_expression);
		try {
			int _alt;
			setState(296);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case IDENTIFIER:
				enterOuterAlt(_localctx, 1);
				{
				setState(287);
				match(IDENTIFIER);
				setState(292);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,28,_ctx);
				while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
					if ( _alt==1 ) {
						{
						{
						setState(288);
						match(DOT);
						setState(289);
						match(IDENTIFIER);
						}
						} 
					}
					setState(294);
					_errHandler.sync(this);
					_alt = getInterpreter().adaptivePredict(_input,28,_ctx);
				}
				}
				break;
			case FULLY_QUALIFIED_IDENTIFIER:
				enterOuterAlt(_localctx, 2);
				{
				setState(295);
				match(FULLY_QUALIFIED_IDENTIFIER);
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Entity_nameContext extends ParserRuleContext {
		public TerminalNode IDENTIFIER() { return getToken(JDQLParser.IDENTIFIER, 0); }
		public Entity_nameContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_entity_name; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterEntity_name(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitEntity_name(this);
		}
	}

	public final Entity_nameContext entity_name() throws RecognitionException {
		Entity_nameContext _localctx = new Entity_nameContext(_ctx, getState());
		enterRule(_localctx, 52, RULE_entity_name);
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(298);
			match(IDENTIFIER);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Enum_literalContext extends ParserRuleContext {
		public List IDENTIFIER() { return getTokens(JDQLParser.IDENTIFIER); }
		public TerminalNode IDENTIFIER(int i) {
			return getToken(JDQLParser.IDENTIFIER, i);
		}
		public List DOT() { return getTokens(JDQLParser.DOT); }
		public TerminalNode DOT(int i) {
			return getToken(JDQLParser.DOT, i);
		}
		public TerminalNode FULLY_QUALIFIED_IDENTIFIER() { return getToken(JDQLParser.FULLY_QUALIFIED_IDENTIFIER, 0); }
		public Enum_literalContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_enum_literal; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterEnum_literal(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitEnum_literal(this);
		}
	}

	public final Enum_literalContext enum_literal() throws RecognitionException {
		Enum_literalContext _localctx = new Enum_literalContext(_ctx, getState());
		enterRule(_localctx, 54, RULE_enum_literal);
		try {
			int _alt;
			setState(309);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case IDENTIFIER:
				enterOuterAlt(_localctx, 1);
				{
				setState(300);
				match(IDENTIFIER);
				setState(305);
				_errHandler.sync(this);
				_alt = getInterpreter().adaptivePredict(_input,30,_ctx);
				while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
					if ( _alt==1 ) {
						{
						{
						setState(301);
						match(DOT);
						setState(302);
						match(IDENTIFIER);
						}
						} 
					}
					setState(307);
					_errHandler.sync(this);
					_alt = getInterpreter().adaptivePredict(_input,30,_ctx);
				}
				}
				break;
			case FULLY_QUALIFIED_IDENTIFIER:
				enterOuterAlt(_localctx, 2);
				{
				setState(308);
				match(FULLY_QUALIFIED_IDENTIFIER);
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class Input_parameterContext extends ParserRuleContext {
		public TerminalNode COLON() { return getToken(JDQLParser.COLON, 0); }
		public TerminalNode IDENTIFIER() { return getToken(JDQLParser.IDENTIFIER, 0); }
		public TerminalNode QUESTION() { return getToken(JDQLParser.QUESTION, 0); }
		public TerminalNode INTEGER() { return getToken(JDQLParser.INTEGER, 0); }
		public Input_parameterContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_input_parameter; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterInput_parameter(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitInput_parameter(this);
		}
	}

	public final Input_parameterContext input_parameter() throws RecognitionException {
		Input_parameterContext _localctx = new Input_parameterContext(_ctx, getState());
		enterRule(_localctx, 56, RULE_input_parameter);
		try {
			setState(315);
			_errHandler.sync(this);
			switch (_input.LA(1)) {
			case COLON:
				enterOuterAlt(_localctx, 1);
				{
				setState(311);
				match(COLON);
				setState(312);
				match(IDENTIFIER);
				}
				break;
			case QUESTION:
				enterOuterAlt(_localctx, 2);
				{
				setState(313);
				match(QUESTION);
				setState(314);
				match(INTEGER);
				}
				break;
			default:
				throw new NoViableAltException(this);
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public static class LiteralContext extends ParserRuleContext {
		public TerminalNode STRING() { return getToken(JDQLParser.STRING, 0); }
		public TerminalNode INTEGER() { return getToken(JDQLParser.INTEGER, 0); }
		public TerminalNode DOUBLE() { return getToken(JDQLParser.DOUBLE, 0); }
		public LiteralContext(ParserRuleContext parent, int invokingState) {
			super(parent, invokingState);
		}
		@Override public int getRuleIndex() { return RULE_literal; }
		@Override
		public void enterRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).enterLiteral(this);
		}
		@Override
		public void exitRule(ParseTreeListener listener) {
			if ( listener instanceof JDQLListener ) ((JDQLListener)listener).exitLiteral(this);
		}
	}

	public final LiteralContext literal() throws RecognitionException {
		LiteralContext _localctx = new LiteralContext(_ctx, getState());
		enterRule(_localctx, 58, RULE_literal);
		int _la;
		try {
			enterOuterAlt(_localctx, 1);
			{
			setState(317);
			_la = _input.LA(1);
			if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << STRING) | (1L << INTEGER) | (1L << DOUBLE))) != 0)) ) {
			_errHandler.recoverInline(this);
			}
			else {
				if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
				_errHandler.reportMatch(this);
				consume();
			}
			}
		}
		catch (RecognitionException re) {
			_localctx.exception = re;
			_errHandler.reportError(this, re);
			_errHandler.recover(this, re);
		}
		finally {
			exitRule();
		}
		return _localctx;
	}

	public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
		switch (ruleIndex) {
		case 13:
			return conditional_expression_sempred((Conditional_expressionContext)_localctx, predIndex);
		case 21:
			return scalar_expression_sempred((Scalar_expressionContext)_localctx, predIndex);
		}
		return true;
	}
	private boolean conditional_expression_sempred(Conditional_expressionContext _localctx, int predIndex) {
		switch (predIndex) {
		case 0:
			return precpred(_ctx, 2);
		case 1:
			return precpred(_ctx, 1);
		}
		return true;
	}
	private boolean scalar_expression_sempred(Scalar_expressionContext _localctx, int predIndex) {
		switch (predIndex) {
		case 2:
			return precpred(_ctx, 5);
		case 3:
			return precpred(_ctx, 4);
		case 4:
			return precpred(_ctx, 3);
		case 5:
			return precpred(_ctx, 2);
		case 6:
			return precpred(_ctx, 1);
		}
		return true;
	}

	public static final String _serializedATN =
		"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3D\u0142\4\2\t\2\4"+
		"\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t"+
		"\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
		"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
		"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\3\2\3\2\3"+
		"\2\5\2B\n\2\3\3\5\3E\n\3\3\3\5\3H\n\3\3\3\5\3K\n\3\3\3\5\3N\n\3\3\4\3"+
		"\4\3\4\3\4\5\4T\n\4\3\5\3\5\3\5\5\5Y\n\5\3\6\3\6\3\6\3\7\3\7\3\7\3\b\3"+
		"\b\3\b\3\b\7\be\n\b\f\b\16\bh\13\b\3\t\3\t\3\t\3\t\5\tn\n\t\3\n\3\n\3"+
		"\n\3\13\3\13\3\13\7\13v\n\13\f\13\16\13y\13\13\3\13\5\13|\n\13\3\f\3\f"+
		"\3\f\3\f\3\f\3\r\3\r\3\r\3\r\3\r\7\r\u0088\n\r\f\r\16\r\u008b\13\r\3\16"+
		"\3\16\5\16\u008f\n\16\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17\3\17"+
		"\3\17\3\17\5\17\u009d\n\17\3\17\3\17\3\17\3\17\3\17\3\17\7\17\u00a5\n"+
		"\17\f\17\16\17\u00a8\13\17\3\20\3\20\3\20\3\20\3\21\3\21\3\22\3\22\5\22"+
		"\u00b2\n\22\3\22\3\22\3\22\3\22\3\22\3\23\3\23\5\23\u00bb\n\23\3\23\3"+
		"\23\3\23\5\23\u00c0\n\23\3\24\3\24\5\24\u00c4\n\24\3\24\3\24\3\24\3\24"+
		"\3\24\7\24\u00cb\n\24\f\24\16\24\u00ce\13\24\3\24\3\24\3\25\3\25\3\25"+
		"\5\25\u00d5\n\25\3\26\3\26\3\26\5\26\u00da\n\26\3\26\3\26\3\27\3\27\3"+
		"\27\3\27\3\27\3\27\5\27\u00e4\n\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27"+
		"\3\27\3\27\3\27\3\27\3\27\3\27\3\27\3\27\7\27\u00f5\n\27\f\27\16\27\u00f8"+
		"\13\27\3\30\3\30\3\30\3\30\3\30\3\30\5\30\u0100\n\30\3\31\3\31\3\31\3"+
		"\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3"+
		"\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\31\5\31\u011e\n\31"+
		"\3\32\3\32\3\33\3\33\3\33\7\33\u0125\n\33\f\33\16\33\u0128\13\33\3\33"+
		"\5\33\u012b\n\33\3\34\3\34\3\35\3\35\3\35\7\35\u0132\n\35\f\35\16\35\u0135"+
		"\13\35\3\35\5\35\u0138\n\35\3\36\3\36\3\36\3\36\5\36\u013e\n\36\3\37\3"+
		"\37\3\37\2\4\34, \2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \"$&(*,.\60\62"+
		"\64\668:<\2\f\3\2\36\37\3\2,\61\3\2\3\4\3\2\5\6\3\2\7\b\3\2\t\n\3\2\13"+
		"\f\3\2\r\16\4\2\34\35\"$\3\2?A\2\u0156\2A\3\2\2\2\4D\3\2\2\2\6O\3\2\2"+
		"\2\bU\3\2\2\2\nZ\3\2\2\2\f]\3\2\2\2\16`\3\2\2\2\20i\3\2\2\2\22o\3\2\2"+
		"\2\24{\3\2\2\2\26}\3\2\2\2\30\u0082\3\2\2\2\32\u008c\3\2\2\2\34\u009c"+
		"\3\2\2\2\36\u00a9\3\2\2\2 \u00ad\3\2\2\2\"\u00af\3\2\2\2$\u00b8\3\2\2"+
		"\2&\u00c1\3\2\2\2(\u00d4\3\2\2\2*\u00d6\3\2\2\2,\u00e3\3\2\2\2.\u00ff"+
		"\3\2\2\2\60\u011d\3\2\2\2\62\u011f\3\2\2\2\64\u012a\3\2\2\2\66\u012c\3"+
		"\2\2\28\u0137\3\2\2\2:\u013d\3\2\2\2<\u013f\3\2\2\2>B\5\4\3\2?B\5\6\4"+
		"\2@B\5\b\5\2A>\3\2\2\2A?\3\2\2\2A@\3\2\2\2B\3\3\2\2\2CE\5\22\n\2DC\3\2"+
		"\2\2DE\3\2\2\2EG\3\2\2\2FH\5\n\6\2GF\3\2\2\2GH\3\2\2\2HJ\3\2\2\2IK\5\f"+
		"\7\2JI\3\2\2\2JK\3\2\2\2KM\3\2\2\2LN\5\30\r\2ML\3\2\2\2MN\3\2\2\2N\5\3"+
		"\2\2\2OP\7\20\2\2PQ\5\66\34\2QS\5\16\b\2RT\5\f\7\2SR\3\2\2\2ST\3\2\2\2"+
		"T\7\3\2\2\2UV\7\21\2\2VX\5\n\6\2WY\5\f\7\2XW\3\2\2\2XY\3\2\2\2Y\t\3\2"+
		"\2\2Z[\7\22\2\2[\\\5\66\34\2\\\13\3\2\2\2]^\7\23\2\2^_\5\34\17\2_\r\3"+
		"\2\2\2`a\7\24\2\2af\5\20\t\2bc\7\67\2\2ce\5\20\t\2db\3\2\2\2eh\3\2\2\2"+
		"fd\3\2\2\2fg\3\2\2\2g\17\3\2\2\2hf\3\2\2\2ij\5\64\33\2jm\7,\2\2kn\5,\27"+
		"\2ln\7\32\2\2mk\3\2\2\2ml\3\2\2\2n\21\3\2\2\2op\7\17\2\2pq\5\24\13\2q"+
		"\23\3\2\2\2rw\5\64\33\2st\7\67\2\2tv\5\64\33\2us\3\2\2\2vy\3\2\2\2wu\3"+
		"\2\2\2wx\3\2\2\2x|\3\2\2\2yw\3\2\2\2z|\5\26\f\2{r\3\2\2\2{z\3\2\2\2|\25"+
		"\3\2\2\2}~\7\33\2\2~\177\79\2\2\177\u0080\7\'\2\2\u0080\u0081\7:\2\2\u0081"+
		"\27\3\2\2\2\u0082\u0083\7\25\2\2\u0083\u0084\7\26\2\2\u0084\u0089\5\32"+
		"\16\2\u0085\u0086\7\67\2\2\u0086\u0088\5\32\16\2\u0087\u0085\3\2\2\2\u0088"+
		"\u008b\3\2\2\2\u0089\u0087\3\2\2\2\u0089\u008a\3\2\2\2\u008a\31\3\2\2"+
		"\2\u008b\u0089\3\2\2\2\u008c\u008e\5\64\33\2\u008d\u008f\t\2\2\2\u008e"+
		"\u008d\3\2\2\2\u008e\u008f\3\2\2\2\u008f\33\3\2\2\2\u0090\u0091\b\17\1"+
		"\2\u0091\u0092\79\2\2\u0092\u0093\5\34\17\2\u0093\u0094\7:\2\2\u0094\u009d"+
		"\3\2\2\2\u0095\u009d\5*\26\2\u0096\u009d\5&\24\2\u0097\u009d\5\"\22\2"+
		"\u0098\u009d\5$\23\2\u0099\u009d\5\36\20\2\u009a\u009b\7\27\2\2\u009b"+
		"\u009d\5\34\17\5\u009c\u0090\3\2\2\2\u009c\u0095\3\2\2\2\u009c\u0096\3"+
		"\2\2\2\u009c\u0097\3\2\2\2\u009c\u0098\3\2\2\2\u009c\u0099\3\2\2\2\u009c"+
		"\u009a\3\2\2\2\u009d\u00a6\3\2\2\2\u009e\u009f\f\4\2\2\u009f\u00a0\7 "+
		"\2\2\u00a0\u00a5\5\34\17\5\u00a1\u00a2\f\3\2\2\u00a2\u00a3\7!\2\2\u00a3"+
		"\u00a5\5\34\17\4\u00a4\u009e\3\2\2\2\u00a4\u00a1\3\2\2\2\u00a5\u00a8\3"+
		"\2\2\2\u00a6\u00a4\3\2\2\2\u00a6\u00a7\3\2\2\2\u00a7\35\3\2\2\2\u00a8"+
		"\u00a6\3\2\2\2\u00a9\u00aa\5,\27\2\u00aa\u00ab\5 \21\2\u00ab\u00ac\5,"+
		"\27\2\u00ac\37\3\2\2\2\u00ad\u00ae\t\3\2\2\u00ae!\3\2\2\2\u00af\u00b1"+
		"\5,\27\2\u00b0\u00b2\7\27\2\2\u00b1\u00b0\3\2\2\2\u00b1\u00b2\3\2\2\2"+
		"\u00b2\u00b3\3\2\2\2\u00b3\u00b4\7%\2\2\u00b4\u00b5\5,\27\2\u00b5\u00b6"+
		"\7 \2\2\u00b6\u00b7\5,\27\2\u00b7#\3\2\2\2\u00b8\u00ba\5,\27\2\u00b9\u00bb"+
		"\7\27\2\2\u00ba\u00b9\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00bc\3\2\2\2"+
		"\u00bc\u00bf\7&\2\2\u00bd\u00c0\7?\2\2\u00be\u00c0\5:\36\2\u00bf\u00bd"+
		"\3\2\2\2\u00bf\u00be\3\2\2\2\u00c0%\3\2\2\2\u00c1\u00c3\5\64\33\2\u00c2"+
		"\u00c4\7\27\2\2\u00c3\u00c2\3\2\2\2\u00c3\u00c4\3\2\2\2\u00c4\u00c5\3"+
		"\2\2\2\u00c5\u00c6\7\30\2\2\u00c6\u00c7\79\2\2\u00c7\u00cc\5(\25\2\u00c8"+
		"\u00c9\7\67\2\2\u00c9\u00cb\5(\25\2\u00ca\u00c8\3\2\2\2\u00cb\u00ce\3"+
		"\2\2\2\u00cc\u00ca\3\2\2\2\u00cc\u00cd\3\2\2\2\u00cd\u00cf\3\2\2\2\u00ce"+
		"\u00cc\3\2\2\2\u00cf\u00d0\7:\2\2\u00d0\'\3\2\2\2\u00d1\u00d5\5<\37\2"+
		"\u00d2\u00d5\58\35\2\u00d3\u00d5\5:\36\2\u00d4\u00d1\3\2\2\2\u00d4\u00d2"+
		"\3\2\2\2\u00d4\u00d3\3\2\2\2\u00d5)\3\2\2\2\u00d6\u00d7\5\64\33\2\u00d7"+
		"\u00d9\7\31\2\2\u00d8\u00da\7\27\2\2\u00d9\u00d8\3\2\2\2\u00d9\u00da\3"+
		"\2\2\2\u00da\u00db\3\2\2\2\u00db\u00dc\7\32\2\2\u00dc+\3\2\2\2\u00dd\u00de"+
		"\b\27\1\2\u00de\u00df\79\2\2\u00df\u00e0\5,\27\2\u00e0\u00e1\7:\2\2\u00e1"+
		"\u00e4\3\2\2\2\u00e2\u00e4\5.\30\2\u00e3\u00dd\3\2\2\2\u00e3\u00e2\3\2"+
		"\2\2\u00e4\u00f6\3\2\2\2\u00e5\u00e6\f\7\2\2\u00e6\u00e7\7\64\2\2\u00e7"+
		"\u00f5\5,\27\b\u00e8\u00e9\f\6\2\2\u00e9\u00ea\7\65\2\2\u00ea\u00f5\5"+
		",\27\7\u00eb\u00ec\f\5\2\2\u00ec\u00ed\7\62\2\2\u00ed\u00f5\5,\27\6\u00ee"+
		"\u00ef\f\4\2\2\u00ef\u00f0\7\63\2\2\u00f0\u00f5\5,\27\5\u00f1\u00f2\f"+
		"\3\2\2\u00f2\u00f3\7\66\2\2\u00f3\u00f5\5,\27\4\u00f4\u00e5\3\2\2\2\u00f4"+
		"\u00e8\3\2\2\2\u00f4\u00eb\3\2\2\2\u00f4\u00ee\3\2\2\2\u00f4\u00f1\3\2"+
		"\2\2\u00f5\u00f8\3\2\2\2\u00f6\u00f4\3\2\2\2\u00f6\u00f7\3\2\2\2\u00f7"+
		"-\3\2\2\2\u00f8\u00f6\3\2\2\2\u00f9\u0100\5\60\31\2\u00fa\u0100\5\62\32"+
		"\2\u00fb\u0100\5\64\33\2\u00fc\u0100\58\35\2\u00fd\u0100\5:\36\2\u00fe"+
		"\u0100\5<\37\2\u00ff\u00f9\3\2\2\2\u00ff\u00fa\3\2\2\2\u00ff\u00fb\3\2"+
		"\2\2\u00ff\u00fc\3\2\2\2\u00ff\u00fd\3\2\2\2\u00ff\u00fe\3\2\2\2\u0100"+
		"/\3\2\2\2\u0101\u0102\t\4\2\2\u0102\u0103\5,\27\2\u0103\u0104\7:\2\2\u0104"+
		"\u011e\3\2\2\2\u0105\u0106\t\5\2\2\u0106\u0107\5,\27\2\u0107\u0108\7:"+
		"\2\2\u0108\u011e\3\2\2\2\u0109\u010a\t\6\2\2\u010a\u010b\5,\27\2\u010b"+
		"\u010c\7:\2\2\u010c\u011e\3\2\2\2\u010d\u010e\t\7\2\2\u010e\u010f\5,\27"+
		"\2\u010f\u0110\7:\2\2\u0110\u011e\3\2\2\2\u0111\u0112\t\b\2\2\u0112\u0113"+
		"\5,\27\2\u0113\u0114\7\67\2\2\u0114\u0115\5,\27\2\u0115\u0116\7:\2\2\u0116"+
		"\u011e\3\2\2\2\u0117\u0118\t\t\2\2\u0118\u0119\5,\27\2\u0119\u011a\7\67"+
		"\2\2\u011a\u011b\5,\27\2\u011b\u011c\7:\2\2\u011c\u011e\3\2\2\2\u011d"+
		"\u0101\3\2\2\2\u011d\u0105\3\2\2\2\u011d\u0109\3\2\2\2\u011d\u010d\3\2"+
		"\2\2\u011d\u0111\3\2\2\2\u011d\u0117\3\2\2\2\u011e\61\3\2\2\2\u011f\u0120"+
		"\t\n\2\2\u0120\63\3\2\2\2\u0121\u0126\7>\2\2\u0122\u0123\78\2\2\u0123"+
		"\u0125\7>\2\2\u0124\u0122\3\2\2\2\u0125\u0128\3\2\2\2\u0126\u0124\3\2"+
		"\2\2\u0126\u0127\3\2\2\2\u0127\u012b\3\2\2\2\u0128\u0126\3\2\2\2\u0129"+
		"\u012b\7=\2\2\u012a\u0121\3\2\2\2\u012a\u0129\3\2\2\2\u012b\65\3\2\2\2"+
		"\u012c\u012d\7>\2\2\u012d\67\3\2\2\2\u012e\u0133\7>\2\2\u012f\u0130\7"+
		"8\2\2\u0130\u0132\7>\2\2\u0131\u012f\3\2\2\2\u0132\u0135\3\2\2\2\u0133"+
		"\u0131\3\2\2\2\u0133\u0134\3\2\2\2\u0134\u0138\3\2\2\2\u0135\u0133\3\2"+
		"\2\2\u0136\u0138\7=\2\2\u0137\u012e\3\2\2\2\u0137\u0136\3\2\2\2\u0138"+
		"9\3\2\2\2\u0139\u013a\7;\2\2\u013a\u013e\7>\2\2\u013b\u013c\7<\2\2\u013c"+
		"\u013e\7@\2\2\u013d\u0139\3\2\2\2\u013d\u013b\3\2\2\2\u013e;\3\2\2\2\u013f"+
		"\u0140\t\13\2\2\u0140=\3\2\2\2#ADGJMSXfmw{\u0089\u008e\u009c\u00a4\u00a6"+
		"\u00b1\u00ba\u00bf\u00c3\u00cc\u00d4\u00d9\u00e3\u00f4\u00f6\u00ff\u011d"+
		"\u0126\u012a\u0133\u0137\u013d";
	public static final ATN _ATN =
		new ATNDeserializer().deserialize(_serializedATN.toCharArray());
	static {
		_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
		for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
			_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy