// $ANTLR start "logicalexpression"
  // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:77:1: logicalexpression :
  // arithmeticexpression ( ( LT | LTE | GT | GTE | IS | NE ) arithmeticexpression )* ;
  public final CriteriaParser.logicalexpression_return logicalexpression()
      throws RecognitionException {
    CriteriaParser.logicalexpression_return retval = new CriteriaParser.logicalexpression_return();
    retval.start = input.LT(1);

    Object root_0 = null;

    Token set9 = null;
    CriteriaParser.arithmeticexpression_return arithmeticexpression8 = null;

    CriteriaParser.arithmeticexpression_return arithmeticexpression10 = null;

    Object set9_tree = null;

    try {
      // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:77:19: ( arithmeticexpression ( ( LT
      // | LTE | GT | GTE | IS | NE ) arithmeticexpression )* )
      // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:77:21: arithmeticexpression ( ( LT |
      // LTE | GT | GTE | IS | NE ) arithmeticexpression )*
      {
        root_0 = (Object) adaptor.nil();

        pushFollow(FOLLOW_arithmeticexpression_in_logicalexpression422);
        arithmeticexpression8 = arithmeticexpression();

        state._fsp--;

        adaptor.addChild(root_0, arithmeticexpression8.getTree());
        // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:77:42: ( ( LT | LTE | GT | GTE |
        // IS | NE ) arithmeticexpression )*
        loop3:
        do {
          int alt3 = 2;
          switch (input.LA(1)) {
            case LT:
            case LTE:
            case GT:
            case GTE:
            case IS:
            case NE:
              {
                alt3 = 1;
              }
              break;
          }

          switch (alt3) {
            case 1:
              // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:77:43: ( LT | LTE | GT | GTE
              // | IS | NE ) arithmeticexpression
              {
                set9 = (Token) input.LT(1);
                set9 = (Token) input.LT(1);
                if ((input.LA(1) >= LT && input.LA(1) <= NE)) {
                  input.consume();
                  root_0 = (Object) adaptor.becomeRoot((Object) adaptor.create(set9), root_0);
                  state.errorRecovery = false;
                } else {
                  MismatchedSetException mse = new MismatchedSetException(null, input);
                  throw mse;
                }

                pushFollow(FOLLOW_arithmeticexpression_in_logicalexpression450);
                arithmeticexpression10 = arithmeticexpression();

                state._fsp--;

                adaptor.addChild(root_0, arithmeticexpression10.getTree());
              }
              break;

            default:
              break loop3;
          }
        } while (true);
      }

      retval.stop = input.LT(-1);

      retval.tree = (Object) adaptor.rulePostProcessing(root_0);
      adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

    } catch (RecognitionException re) {
      reportError(re);
      recover(input, re);
      retval.tree = (Object) adaptor.errorNode(input, retval.start, input.LT(-1), re);

    } finally {
    }
    return retval;
  }
  // $ANTLR start "orexpression"
  // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:75:1: orexpression : logicalexpression (
  // OR logicalexpression )* ;
  public final CriteriaParser.orexpression_return orexpression() throws RecognitionException {
    CriteriaParser.orexpression_return retval = new CriteriaParser.orexpression_return();
    retval.start = input.LT(1);

    Object root_0 = null;

    Token OR6 = null;
    CriteriaParser.logicalexpression_return logicalexpression5 = null;

    CriteriaParser.logicalexpression_return logicalexpression7 = null;

    Object OR6_tree = null;

    try {
      // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:75:14: ( logicalexpression ( OR
      // logicalexpression )* )
      // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:75:16: logicalexpression ( OR
      // logicalexpression )*
      {
        root_0 = (Object) adaptor.nil();

        pushFollow(FOLLOW_logicalexpression_in_orexpression406);
        logicalexpression5 = logicalexpression();

        state._fsp--;

        adaptor.addChild(root_0, logicalexpression5.getTree());
        // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:75:34: ( OR logicalexpression )*
        loop2:
        do {
          int alt2 = 2;
          switch (input.LA(1)) {
            case OR:
              {
                alt2 = 1;
              }
              break;
          }

          switch (alt2) {
            case 1:
              // com/pmerienne/eventmonitoring/shared/parser/Criteria.g:75:35: OR logicalexpression
              {
                OR6 = (Token) match(input, OR, FOLLOW_OR_in_orexpression409);
                OR6_tree = (Object) adaptor.create(OR6);
                root_0 = (Object) adaptor.becomeRoot(OR6_tree, root_0);

                pushFollow(FOLLOW_logicalexpression_in_orexpression412);
                logicalexpression7 = logicalexpression();

                state._fsp--;

                adaptor.addChild(root_0, logicalexpression7.getTree());
              }
              break;

            default:
              break loop2;
          }
        } while (true);
      }

      retval.stop = input.LT(-1);

      retval.tree = (Object) adaptor.rulePostProcessing(root_0);
      adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);

    } catch (RecognitionException re) {
      reportError(re);
      recover(input, re);
      retval.tree = (Object) adaptor.errorNode(input, retval.start, input.LT(-1), re);

    } finally {
    }
    return retval;
  }