public IElementType advance() throws java.io.IOException
  {
    int zzInput;
    int zzAction;

    // cached fields:
    int zzCurrentPosL;
    int zzMarkedPosL;
    int zzEndReadL = zzEndRead;
    CharSequence zzBufferL = zzBuffer;

    int [] zzTransL = ZZ_TRANS;
    int [] zzRowMapL = ZZ_ROWMAP;
    int [] zzAttrL = ZZ_ATTRIBUTE;

    while (true) {
      zzMarkedPosL = zzMarkedPos;

      zzAction = -1;

      zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;

      zzState = ZZ_LEXSTATE[zzLexicalState];

      // set up zzAction for empty match case:
      int zzAttributes = zzAttrL[zzState];
      if ( (zzAttributes & 1) == 1 ) {
        zzAction = zzState;
      }


      zzForAction: {
        while (true) {

          if (zzCurrentPosL < zzEndReadL) {
            zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL);
            zzCurrentPosL += Character.charCount(zzInput);
          }
          else if (zzAtEOF) {
            zzInput = YYEOF;
            break zzForAction;
          }
          else {
            // store back cached positions
            zzCurrentPos  = zzCurrentPosL;
            zzMarkedPos   = zzMarkedPosL;
            boolean eof = zzRefill();
            // get translated positions and possibly new buffer
            zzCurrentPosL  = zzCurrentPos;
            zzMarkedPosL   = zzMarkedPos;
            zzBufferL      = zzBuffer;
            zzEndReadL     = zzEndRead;
            if (eof) {
              zzInput = YYEOF;
              break zzForAction;
            }
            else {
              zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL);
              zzCurrentPosL += Character.charCount(zzInput);
            }
          }
          int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMap(zzInput) ];
          if (zzNext == -1) break zzForAction;
          zzState = zzNext;

          zzAttributes = zzAttrL[zzState];
          if ( (zzAttributes & 1) == 1 ) {
            zzAction = zzState;
            zzMarkedPosL = zzCurrentPosL;
            if ( (zzAttributes & 8) == 8 ) break zzForAction;
          }

        }
      }

      // store back cached position
      zzMarkedPos = zzMarkedPosL;

      if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
        zzAtEOF = true;
        return null;
      }
      else {
        switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
          case 1:
            { return JqlTokenTypes.STRING_LITERAL;
            }
          // fall through
          case 41: break;
          case 2:
            { return JqlTokenTypes.WHITE_SPACE;
            }
          // fall through
          case 42: break;
          case 3:
            { return JqlTokenTypes.BAD_CHARACTER;
            }
          // fall through
          case 43: break;
          case 4:
            { return JqlTokenTypes.BANG;
            }
          // fall through
          case 44: break;
          case 5:
            { return JqlTokenTypes.AMP;
            }
          // fall through
          case 45: break;
          case 6:
            { return JqlTokenTypes.LPAR;
            }
          // fall through
          case 46: break;
          case 7:
            { return JqlTokenTypes.RPAR;
            }
          // fall through
          case 47: break;
          case 8:
            { return JqlTokenTypes.COMMA;
            }
          // fall through
          case 48: break;
          case 9:
            { return JqlTokenTypes.NUMBER_LITERAL;
            }
          // fall through
          case 49: break;
          case 10:
            { return JqlTokenTypes.LT;
            }
          // fall through
          case 50: break;
          case 11:
            { return JqlTokenTypes.EQ;
            }
          // fall through
          case 51: break;
          case 12:
            { return JqlTokenTypes.GT;
            }
          // fall through
          case 52: break;
          case 13:
            { return JqlTokenTypes.PIPE;
            }
          // fall through
          case 53: break;
          case 14:
            { return JqlTokenTypes.CONTAINS;
            }
          // fall through
          case 54: break;
          case 15:
            { return JqlTokenTypes.NE;
            }
          // fall through
          case 55: break;
          case 16:
            { return JqlTokenTypes.NOT_CONTAINS;
            }
          // fall through
          case 56: break;
          case 17:
            { return JqlTokenTypes.AMP_AMP;
            }
          // fall through
          case 57: break;
          case 18:
            { return JqlTokenTypes.LE;
            }
          // fall through
          case 58: break;
          case 19:
            { return JqlTokenTypes.GE;
            }
          // fall through
          case 59: break;
          case 20:
            { return JqlTokenTypes.BY_KEYWORD;
            }
          // fall through
          case 60: break;
          case 21:
            { return JqlTokenTypes.IN_KEYWORD;
            }
          // fall through
          case 61: break;
          case 22:
            { return JqlTokenTypes.IS_KEYWORD;
            }
          // fall through
          case 62: break;
          case 23:
            { return JqlTokenTypes.ON_KEYWORD;
            }
          // fall through
          case 63: break;
          case 24:
            { return JqlTokenTypes.OR_KEYWORD;
            }
          // fall through
          case 64: break;
          case 25:
            { return JqlTokenTypes.TO_KEYWORD;
            }
          // fall through
          case 65: break;
          case 26:
            { return JqlTokenTypes.PIPE_PIPE;
            }
          // fall through
          case 66: break;
          case 27:
            { return JqlTokenTypes.AND_KEYWORD;
            }
          // fall through
          case 67: break;
          case 28:
            { return JqlTokenTypes.ASC_KEYWORD;
            }
          // fall through
          case 68: break;
          case 29:
            { return JqlTokenTypes.NOT_KEYWORD;
            }
          // fall through
          case 69: break;
          case 30:
            { return JqlTokenTypes.WAS_KEYWORD;
            }
          // fall through
          case 70: break;
          case 31:
            { return JqlTokenTypes.DESC_KEYWORD;
            }
          // fall through
          case 71: break;
          case 32:
            { return JqlTokenTypes.FROM_KEYWORD;
            }
          // fall through
          case 72: break;
          case 33:
            { return JqlTokenTypes.NULL_KEYWORD;
            }
          // fall through
          case 73: break;
          case 34:
            { return JqlTokenTypes.AFTER_KEYWORD;
            }
          // fall through
          case 74: break;
          case 35:
            { return JqlTokenTypes.CUSTOM_FIELD;
            }
          // fall through
          case 75: break;
          case 36:
            { return JqlTokenTypes.EMPTY_KEYWORD;
            }
          // fall through
          case 76: break;
          case 37:
            { return JqlTokenTypes.ORDER_KEYWORD;
            }
          // fall through
          case 77: break;
          case 38:
            { return JqlTokenTypes.BEFORE_KEYWORD;
            }
          // fall through
          case 78: break;
          case 39:
            { return JqlTokenTypes.DURING_KEYWORD;
            }
          // fall through
          case 79: break;
          case 40:
            { return JqlTokenTypes.CHANGED_KEYWORD;
            }
          // fall through
          case 80: break;
          default:
            zzScanError(ZZ_NO_MATCH);
          }
      }
    }
  }
public IElementType advance()