public final void mESC_SEQ()

in stack/core/src/main/java/org/apache/usergrid/mq/QueryFilterLexer.java [1216:1296]


    public final void mESC_SEQ() throws RecognitionException {
        try {
            // org/usergrid/persistence/query/QueryFilter.g:82:5: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' |
            // '\\'' | '\\\\' ) | UNICODE_ESC | OCTAL_ESC )
            int alt16 = 3;
            int LA16_0 = input.LA( 1 );

            if ( ( LA16_0 == '\\' ) ) {
                switch ( input.LA( 2 ) ) {
                    case '\"':
                    case '\'':
                    case '\\':
                    case 'b':
                    case 'f':
                    case 'n':
                    case 'r':
                    case 't': {
                        alt16 = 1;
                    }
                    break;
                    case 'u': {
                        alt16 = 2;
                    }
                    break;
                    case '0':
                    case '1':
                    case '2':
                    case '3':
                    case '4':
                    case '5':
                    case '6':
                    case '7': {
                        alt16 = 3;
                    }
                    break;
                    default:
                        NoViableAltException nvae = new NoViableAltException( "", 16, 1, input );

                        throw nvae;
                }
            }
            else {
                NoViableAltException nvae = new NoViableAltException( "", 16, 0, input );

                throw nvae;
            }
            switch ( alt16 ) {
                case 1:
                    // org/usergrid/persistence/query/QueryFilter.g:82:9: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' |
                    // '\\\"' | '\\'' | '\\\\' )
                {
                    match( '\\' );
                    if ( input.LA( 1 ) == '\"' || input.LA( 1 ) == '\'' || input.LA( 1 ) == '\\' || input.LA( 1 ) == 'b'
                            || input.LA( 1 ) == 'f' || input.LA( 1 ) == 'n' || input.LA( 1 ) == 'r'
                            || input.LA( 1 ) == 't' ) {
                        input.consume();
                    }
                    else {
                        MismatchedSetException mse = new MismatchedSetException( null, input );
                        recover( mse );
                        throw mse;
                    }
                }
                break;
                case 2:
                    // org/usergrid/persistence/query/QueryFilter.g:83:9: UNICODE_ESC
                {
                    mUNICODE_ESC();
                }
                break;
                case 3:
                    // org/usergrid/persistence/query/QueryFilter.g:84:9: OCTAL_ESC
                {
                    mOCTAL_ESC();
                }
                break;
            }
        }
        finally {
        }
    }