Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.eclipse.jnosql.query.grammar.method.MethodParser Maven / Gradle / Ivy
// Generated from org/eclipse/jnosql/query/grammar/method/Method.g4 by ANTLR 4.9.3
package org.eclipse.jnosql.query.grammar.method;
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 MethodParser 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, T__12=13, T__13=14, T__14=15, T__15=16, T__16=17,
T__17=18, T__18=19, T__19=20, ANY_NAME=21, WS=22;
public static final int
RULE_select = 0, RULE_deleteBy = 1, RULE_selectStart = 2, RULE_where = 3,
RULE_condition = 4, RULE_order = 5, RULE_orderName = 6, RULE_and = 7,
RULE_or = 8, RULE_asc = 9, RULE_desc = 10, RULE_truth = 11, RULE_untruth = 12,
RULE_eq = 13, RULE_gt = 14, RULE_gte = 15, RULE_lt = 16, RULE_lte = 17,
RULE_between = 18, RULE_in = 19, RULE_like = 20, RULE_not = 21, RULE_variable = 22;
private static String[] makeRuleNames() {
return new String[] {
"select", "deleteBy", "selectStart", "where", "condition", "order", "orderName",
"and", "or", "asc", "desc", "truth", "untruth", "eq", "gt", "gte", "lt",
"lte", "between", "in", "like", "not", "variable"
};
}
public static final String[] ruleNames = makeRuleNames();
private static String[] makeLiteralNames() {
return new String[] {
null, "'deleteBy'", "'findBy'", "'countBy'", "'existsBy'", "'OrderBy'",
"'And'", "'Or'", "'Asc'", "'Desc'", "'True'", "'False'", "'Equals'",
"'GreaterThan'", "'GreaterThanEqual'", "'LessThan'", "'LessThanEqual'",
"'Between'", "'In'", "'Like'", "'Not'"
};
}
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, null, null, null, null, null, null, null, null, "ANY_NAME", "WS"
};
}
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 "Method.g4"; }
@Override
public String[] getRuleNames() { return ruleNames; }
@Override
public String getSerializedATN() { return _serializedATN; }
@Override
public ATN getATN() { return _ATN; }
public MethodParser(TokenStream input) {
super(input);
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
}
public static class SelectContext extends ParserRuleContext {
public SelectStartContext selectStart() {
return getRuleContext(SelectStartContext.class,0);
}
public TerminalNode EOF() { return getToken(MethodParser.EOF, 0); }
public WhereContext where() {
return getRuleContext(WhereContext.class,0);
}
public OrderContext order() {
return getRuleContext(OrderContext.class,0);
}
public SelectContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_select; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterSelect(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitSelect(this);
}
}
public final SelectContext select() throws RecognitionException {
SelectContext _localctx = new SelectContext(_ctx, getState());
enterRule(_localctx, 0, RULE_select);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(46);
selectStart();
setState(48);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==ANY_NAME) {
{
setState(47);
where();
}
}
setState(51);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__4) {
{
setState(50);
order();
}
}
setState(53);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DeleteByContext extends ParserRuleContext {
public TerminalNode EOF() { return getToken(MethodParser.EOF, 0); }
public WhereContext where() {
return getRuleContext(WhereContext.class,0);
}
public DeleteByContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_deleteBy; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterDeleteBy(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitDeleteBy(this);
}
}
public final DeleteByContext deleteBy() throws RecognitionException {
DeleteByContext _localctx = new DeleteByContext(_ctx, getState());
enterRule(_localctx, 2, RULE_deleteBy);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(55);
match(T__0);
setState(57);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==ANY_NAME) {
{
setState(56);
where();
}
}
setState(59);
match(EOF);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class SelectStartContext extends ParserRuleContext {
public SelectStartContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_selectStart; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterSelectStart(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitSelectStart(this);
}
}
public final SelectStartContext selectStart() throws RecognitionException {
SelectStartContext _localctx = new SelectStartContext(_ctx, getState());
enterRule(_localctx, 4, RULE_selectStart);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(61);
_la = _input.LA(1);
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__1) | (1L << T__2) | (1L << T__3))) != 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 WhereContext extends ParserRuleContext {
public List condition() {
return getRuleContexts(ConditionContext.class);
}
public ConditionContext condition(int i) {
return getRuleContext(ConditionContext.class,i);
}
public List and() {
return getRuleContexts(AndContext.class);
}
public AndContext and(int i) {
return getRuleContext(AndContext.class,i);
}
public List or() {
return getRuleContexts(OrContext.class);
}
public OrContext or(int i) {
return getRuleContext(OrContext.class,i);
}
public WhereContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_where; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterWhere(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitWhere(this);
}
}
public final WhereContext where() throws RecognitionException {
WhereContext _localctx = new WhereContext(_ctx, getState());
enterRule(_localctx, 6, RULE_where);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(63);
condition();
setState(72);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==T__5 || _la==T__6) {
{
setState(70);
_errHandler.sync(this);
switch (_input.LA(1)) {
case T__5:
{
setState(64);
and();
setState(65);
condition();
}
break;
case T__6:
{
setState(67);
or();
setState(68);
condition();
}
break;
default:
throw new NoViableAltException(this);
}
}
setState(74);
_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 ConditionContext extends ParserRuleContext {
public EqContext eq() {
return getRuleContext(EqContext.class,0);
}
public GtContext gt() {
return getRuleContext(GtContext.class,0);
}
public GteContext gte() {
return getRuleContext(GteContext.class,0);
}
public LtContext lt() {
return getRuleContext(LtContext.class,0);
}
public LteContext lte() {
return getRuleContext(LteContext.class,0);
}
public BetweenContext between() {
return getRuleContext(BetweenContext.class,0);
}
public InContext in() {
return getRuleContext(InContext.class,0);
}
public LikeContext like() {
return getRuleContext(LikeContext.class,0);
}
public TruthContext truth() {
return getRuleContext(TruthContext.class,0);
}
public UntruthContext untruth() {
return getRuleContext(UntruthContext.class,0);
}
public ConditionContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_condition; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterCondition(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitCondition(this);
}
}
public final ConditionContext condition() throws RecognitionException {
ConditionContext _localctx = new ConditionContext(_ctx, getState());
enterRule(_localctx, 8, RULE_condition);
try {
setState(85);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,5,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(75);
eq();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(76);
gt();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(77);
gte();
}
break;
case 4:
enterOuterAlt(_localctx, 4);
{
setState(78);
lt();
}
break;
case 5:
enterOuterAlt(_localctx, 5);
{
setState(79);
lte();
}
break;
case 6:
enterOuterAlt(_localctx, 6);
{
setState(80);
between();
}
break;
case 7:
enterOuterAlt(_localctx, 7);
{
setState(81);
in();
}
break;
case 8:
enterOuterAlt(_localctx, 8);
{
setState(82);
like();
}
break;
case 9:
enterOuterAlt(_localctx, 9);
{
setState(83);
truth();
}
break;
case 10:
enterOuterAlt(_localctx, 10);
{
setState(84);
untruth();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OrderContext extends ParserRuleContext {
public List orderName() {
return getRuleContexts(OrderNameContext.class);
}
public OrderNameContext orderName(int i) {
return getRuleContext(OrderNameContext.class,i);
}
public OrderContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_order; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterOrder(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitOrder(this);
}
}
public final OrderContext order() throws RecognitionException {
OrderContext _localctx = new OrderContext(_ctx, getState());
enterRule(_localctx, 10, RULE_order);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(87);
match(T__4);
setState(88);
orderName();
setState(92);
_errHandler.sync(this);
_la = _input.LA(1);
while (_la==ANY_NAME) {
{
{
setState(89);
orderName();
}
}
setState(94);
_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 OrderNameContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public AscContext asc() {
return getRuleContext(AscContext.class,0);
}
public DescContext desc() {
return getRuleContext(DescContext.class,0);
}
public OrderNameContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_orderName; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterOrderName(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitOrderName(this);
}
}
public final OrderNameContext orderName() throws RecognitionException {
OrderNameContext _localctx = new OrderNameContext(_ctx, getState());
enterRule(_localctx, 12, RULE_orderName);
try {
setState(102);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,7,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(95);
variable();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(96);
variable();
setState(97);
asc();
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(99);
variable();
setState(100);
desc();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class AndContext extends ParserRuleContext {
public AndContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_and; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterAnd(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitAnd(this);
}
}
public final AndContext and() throws RecognitionException {
AndContext _localctx = new AndContext(_ctx, getState());
enterRule(_localctx, 14, RULE_and);
try {
enterOuterAlt(_localctx, 1);
{
setState(104);
match(T__5);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class OrContext extends ParserRuleContext {
public OrContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_or; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterOr(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitOr(this);
}
}
public final OrContext or() throws RecognitionException {
OrContext _localctx = new OrContext(_ctx, getState());
enterRule(_localctx, 16, RULE_or);
try {
enterOuterAlt(_localctx, 1);
{
setState(106);
match(T__6);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class AscContext extends ParserRuleContext {
public AscContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_asc; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterAsc(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitAsc(this);
}
}
public final AscContext asc() throws RecognitionException {
AscContext _localctx = new AscContext(_ctx, getState());
enterRule(_localctx, 18, RULE_asc);
try {
enterOuterAlt(_localctx, 1);
{
setState(108);
match(T__7);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class DescContext extends ParserRuleContext {
public DescContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_desc; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterDesc(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitDesc(this);
}
}
public final DescContext desc() throws RecognitionException {
DescContext _localctx = new DescContext(_ctx, getState());
enterRule(_localctx, 20, RULE_desc);
try {
enterOuterAlt(_localctx, 1);
{
setState(110);
match(T__8);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class TruthContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public TruthContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_truth; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterTruth(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitTruth(this);
}
}
public final TruthContext truth() throws RecognitionException {
TruthContext _localctx = new TruthContext(_ctx, getState());
enterRule(_localctx, 22, RULE_truth);
try {
enterOuterAlt(_localctx, 1);
{
setState(112);
variable();
setState(113);
match(T__9);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class UntruthContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public UntruthContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_untruth; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterUntruth(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitUntruth(this);
}
}
public final UntruthContext untruth() throws RecognitionException {
UntruthContext _localctx = new UntruthContext(_ctx, getState());
enterRule(_localctx, 24, RULE_untruth);
try {
enterOuterAlt(_localctx, 1);
{
setState(115);
variable();
setState(116);
match(T__10);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class EqContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public EqContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_eq; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterEq(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitEq(this);
}
}
public final EqContext eq() throws RecognitionException {
EqContext _localctx = new EqContext(_ctx, getState());
enterRule(_localctx, 26, RULE_eq);
int _la;
try {
setState(128);
_errHandler.sync(this);
switch ( getInterpreter().adaptivePredict(_input,9,_ctx) ) {
case 1:
enterOuterAlt(_localctx, 1);
{
setState(118);
variable();
}
break;
case 2:
enterOuterAlt(_localctx, 2);
{
setState(119);
variable();
setState(121);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(120);
not();
}
}
setState(123);
match(T__11);
}
break;
case 3:
enterOuterAlt(_localctx, 3);
{
setState(125);
variable();
setState(126);
not();
}
break;
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class GtContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public GtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_gt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterGt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitGt(this);
}
}
public final GtContext gt() throws RecognitionException {
GtContext _localctx = new GtContext(_ctx, getState());
enterRule(_localctx, 28, RULE_gt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(130);
variable();
setState(132);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(131);
not();
}
}
setState(134);
match(T__12);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class GteContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public GteContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_gte; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterGte(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitGte(this);
}
}
public final GteContext gte() throws RecognitionException {
GteContext _localctx = new GteContext(_ctx, getState());
enterRule(_localctx, 30, RULE_gte);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(136);
variable();
setState(138);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(137);
not();
}
}
setState(140);
match(T__13);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LtContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public LtContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lt; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterLt(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitLt(this);
}
}
public final LtContext lt() throws RecognitionException {
LtContext _localctx = new LtContext(_ctx, getState());
enterRule(_localctx, 32, RULE_lt);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(142);
variable();
setState(144);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(143);
not();
}
}
setState(146);
match(T__14);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LteContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public LteContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_lte; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterLte(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitLte(this);
}
}
public final LteContext lte() throws RecognitionException {
LteContext _localctx = new LteContext(_ctx, getState());
enterRule(_localctx, 34, RULE_lte);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(148);
variable();
setState(150);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(149);
not();
}
}
setState(152);
match(T__15);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class BetweenContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public BetweenContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_between; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterBetween(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitBetween(this);
}
}
public final BetweenContext between() throws RecognitionException {
BetweenContext _localctx = new BetweenContext(_ctx, getState());
enterRule(_localctx, 36, RULE_between);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(154);
variable();
setState(156);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(155);
not();
}
}
setState(158);
match(T__16);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class InContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public InContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_in; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterIn(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitIn(this);
}
}
public final InContext in() throws RecognitionException {
InContext _localctx = new InContext(_ctx, getState());
enterRule(_localctx, 38, RULE_in);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(160);
variable();
setState(162);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(161);
not();
}
}
setState(164);
match(T__17);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class LikeContext extends ParserRuleContext {
public VariableContext variable() {
return getRuleContext(VariableContext.class,0);
}
public NotContext not() {
return getRuleContext(NotContext.class,0);
}
public LikeContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_like; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterLike(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitLike(this);
}
}
public final LikeContext like() throws RecognitionException {
LikeContext _localctx = new LikeContext(_ctx, getState());
enterRule(_localctx, 40, RULE_like);
int _la;
try {
enterOuterAlt(_localctx, 1);
{
setState(166);
variable();
setState(168);
_errHandler.sync(this);
_la = _input.LA(1);
if (_la==T__19) {
{
setState(167);
not();
}
}
setState(170);
match(T__18);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class NotContext extends ParserRuleContext {
public NotContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_not; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterNot(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitNot(this);
}
}
public final NotContext not() throws RecognitionException {
NotContext _localctx = new NotContext(_ctx, getState());
enterRule(_localctx, 42, RULE_not);
try {
enterOuterAlt(_localctx, 1);
{
setState(172);
match(T__19);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static class VariableContext extends ParserRuleContext {
public TerminalNode ANY_NAME() { return getToken(MethodParser.ANY_NAME, 0); }
public VariableContext(ParserRuleContext parent, int invokingState) {
super(parent, invokingState);
}
@Override public int getRuleIndex() { return RULE_variable; }
@Override
public void enterRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).enterVariable(this);
}
@Override
public void exitRule(ParseTreeListener listener) {
if ( listener instanceof MethodListener ) ((MethodListener)listener).exitVariable(this);
}
}
public final VariableContext variable() throws RecognitionException {
VariableContext _localctx = new VariableContext(_ctx, getState());
enterRule(_localctx, 44, RULE_variable);
try {
enterOuterAlt(_localctx, 1);
{
setState(174);
match(ANY_NAME);
}
}
catch (RecognitionException re) {
_localctx.exception = re;
_errHandler.reportError(this, re);
_errHandler.recover(this, re);
}
finally {
exitRule();
}
return _localctx;
}
public static final String _serializedATN =
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\30\u00b3\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\3\2\3\2\5"+
"\2\63\n\2\3\2\5\2\66\n\2\3\2\3\2\3\3\3\3\5\3<\n\3\3\3\3\3\3\4\3\4\3\5"+
"\3\5\3\5\3\5\3\5\3\5\3\5\7\5I\n\5\f\5\16\5L\13\5\3\6\3\6\3\6\3\6\3\6\3"+
"\6\3\6\3\6\3\6\3\6\5\6X\n\6\3\7\3\7\3\7\7\7]\n\7\f\7\16\7`\13\7\3\b\3"+
"\b\3\b\3\b\3\b\3\b\3\b\5\bi\n\b\3\t\3\t\3\n\3\n\3\13\3\13\3\f\3\f\3\r"+
"\3\r\3\r\3\16\3\16\3\16\3\17\3\17\3\17\5\17|\n\17\3\17\3\17\3\17\3\17"+
"\3\17\5\17\u0083\n\17\3\20\3\20\5\20\u0087\n\20\3\20\3\20\3\21\3\21\5"+
"\21\u008d\n\21\3\21\3\21\3\22\3\22\5\22\u0093\n\22\3\22\3\22\3\23\3\23"+
"\5\23\u0099\n\23\3\23\3\23\3\24\3\24\5\24\u009f\n\24\3\24\3\24\3\25\3"+
"\25\5\25\u00a5\n\25\3\25\3\25\3\26\3\26\5\26\u00ab\n\26\3\26\3\26\3\27"+
"\3\27\3\30\3\30\3\30\2\2\31\2\4\6\b\n\f\16\20\22\24\26\30\32\34\36 \""+
"$&(*,.\2\3\3\2\4\6\2\u00b6\2\60\3\2\2\2\49\3\2\2\2\6?\3\2\2\2\bA\3\2\2"+
"\2\nW\3\2\2\2\fY\3\2\2\2\16h\3\2\2\2\20j\3\2\2\2\22l\3\2\2\2\24n\3\2\2"+
"\2\26p\3\2\2\2\30r\3\2\2\2\32u\3\2\2\2\34\u0082\3\2\2\2\36\u0084\3\2\2"+
"\2 \u008a\3\2\2\2\"\u0090\3\2\2\2$\u0096\3\2\2\2&\u009c\3\2\2\2(\u00a2"+
"\3\2\2\2*\u00a8\3\2\2\2,\u00ae\3\2\2\2.\u00b0\3\2\2\2\60\62\5\6\4\2\61"+
"\63\5\b\5\2\62\61\3\2\2\2\62\63\3\2\2\2\63\65\3\2\2\2\64\66\5\f\7\2\65"+
"\64\3\2\2\2\65\66\3\2\2\2\66\67\3\2\2\2\678\7\2\2\38\3\3\2\2\29;\7\3\2"+
"\2:<\5\b\5\2;:\3\2\2\2;<\3\2\2\2<=\3\2\2\2=>\7\2\2\3>\5\3\2\2\2?@\t\2"+
"\2\2@\7\3\2\2\2AJ\5\n\6\2BC\5\20\t\2CD\5\n\6\2DI\3\2\2\2EF\5\22\n\2FG"+
"\5\n\6\2GI\3\2\2\2HB\3\2\2\2HE\3\2\2\2IL\3\2\2\2JH\3\2\2\2JK\3\2\2\2K"+
"\t\3\2\2\2LJ\3\2\2\2MX\5\34\17\2NX\5\36\20\2OX\5 \21\2PX\5\"\22\2QX\5"+
"$\23\2RX\5&\24\2SX\5(\25\2TX\5*\26\2UX\5\30\r\2VX\5\32\16\2WM\3\2\2\2"+
"WN\3\2\2\2WO\3\2\2\2WP\3\2\2\2WQ\3\2\2\2WR\3\2\2\2WS\3\2\2\2WT\3\2\2\2"+
"WU\3\2\2\2WV\3\2\2\2X\13\3\2\2\2YZ\7\7\2\2Z^\5\16\b\2[]\5\16\b\2\\[\3"+
"\2\2\2]`\3\2\2\2^\\\3\2\2\2^_\3\2\2\2_\r\3\2\2\2`^\3\2\2\2ai\5.\30\2b"+
"c\5.\30\2cd\5\24\13\2di\3\2\2\2ef\5.\30\2fg\5\26\f\2gi\3\2\2\2ha\3\2\2"+
"\2hb\3\2\2\2he\3\2\2\2i\17\3\2\2\2jk\7\b\2\2k\21\3\2\2\2lm\7\t\2\2m\23"+
"\3\2\2\2no\7\n\2\2o\25\3\2\2\2pq\7\13\2\2q\27\3\2\2\2rs\5.\30\2st\7\f"+
"\2\2t\31\3\2\2\2uv\5.\30\2vw\7\r\2\2w\33\3\2\2\2x\u0083\5.\30\2y{\5.\30"+
"\2z|\5,\27\2{z\3\2\2\2{|\3\2\2\2|}\3\2\2\2}~\7\16\2\2~\u0083\3\2\2\2\177"+
"\u0080\5.\30\2\u0080\u0081\5,\27\2\u0081\u0083\3\2\2\2\u0082x\3\2\2\2"+
"\u0082y\3\2\2\2\u0082\177\3\2\2\2\u0083\35\3\2\2\2\u0084\u0086\5.\30\2"+
"\u0085\u0087\5,\27\2\u0086\u0085\3\2\2\2\u0086\u0087\3\2\2\2\u0087\u0088"+
"\3\2\2\2\u0088\u0089\7\17\2\2\u0089\37\3\2\2\2\u008a\u008c\5.\30\2\u008b"+
"\u008d\5,\27\2\u008c\u008b\3\2\2\2\u008c\u008d\3\2\2\2\u008d\u008e\3\2"+
"\2\2\u008e\u008f\7\20\2\2\u008f!\3\2\2\2\u0090\u0092\5.\30\2\u0091\u0093"+
"\5,\27\2\u0092\u0091\3\2\2\2\u0092\u0093\3\2\2\2\u0093\u0094\3\2\2\2\u0094"+
"\u0095\7\21\2\2\u0095#\3\2\2\2\u0096\u0098\5.\30\2\u0097\u0099\5,\27\2"+
"\u0098\u0097\3\2\2\2\u0098\u0099\3\2\2\2\u0099\u009a\3\2\2\2\u009a\u009b"+
"\7\22\2\2\u009b%\3\2\2\2\u009c\u009e\5.\30\2\u009d\u009f\5,\27\2\u009e"+
"\u009d\3\2\2\2\u009e\u009f\3\2\2\2\u009f\u00a0\3\2\2\2\u00a0\u00a1\7\23"+
"\2\2\u00a1\'\3\2\2\2\u00a2\u00a4\5.\30\2\u00a3\u00a5\5,\27\2\u00a4\u00a3"+
"\3\2\2\2\u00a4\u00a5\3\2\2\2\u00a5\u00a6\3\2\2\2\u00a6\u00a7\7\24\2\2"+
"\u00a7)\3\2\2\2\u00a8\u00aa\5.\30\2\u00a9\u00ab\5,\27\2\u00aa\u00a9\3"+
"\2\2\2\u00aa\u00ab\3\2\2\2\u00ab\u00ac\3\2\2\2\u00ac\u00ad\7\25\2\2\u00ad"+
"+\3\2\2\2\u00ae\u00af\7\26\2\2\u00af-\3\2\2\2\u00b0\u00b1\7\27\2\2\u00b1"+
"/\3\2\2\2\23\62\65;HJW^h{\u0082\u0086\u008c\u0092\u0098\u009e\u00a4\u00aa";
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);
}
}
}