protected String getStringValue ( ) { if ( type == VALUE_NULL ) { return null ; } else if ( ! ( type == VALUE_ESTRING || type == EFIELD ) ) { if ( dirty ) { return dirtyBuf . substring ( startIndex , endIndex ) ; } return new String ( cbuf , startIndex , endIndex - startIndex ) ; } else { StringBuilder buf = new StringBuilder ( endIndex - startIndex ) ; if ( dirty ) { for ( int i = startIndex ; i < endIndex ; i ++ ) { char c = dirtyBuf . charAt ( i ) ; if ( c == ' ' ) { i ++ ; c = dirtyBuf . charAt ( i ) ; if ( c == ' ' || c == ' ' || c == ' ' ) { buf . append ( c ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { String code = dirtyBuf . substring ( i + 1 , i + 5 ) ; buf . append ( ( char ) Integer . parseInt ( code , 16 ) ) ; i += 4 ; } } else { buf . append ( c ) ; } } } else { for ( int i = startIndex ; i < endIndex ; i ++ ) { char c = cbuf [ i ] ; if ( c == ' ' ) { i ++ ; c = cbuf [ i ] ; if ( c == ' ' || c == ' ' || c == ' ' ) { buf . append ( c ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { buf . append ( ' ' ) ; } else if ( c == ' ' ) { String code = new String ( cbuf , i + 1 , 4 ) ; buf . append ( ( char ) Integer . parseInt ( code , 16 ) ) ; i += 4 ; } } else { buf . append ( c ) ; } } } return buf . toString ( ) ; } }
Extracts a string containing the characters given by this token . If the token was marked as having escaped characters they will be unescaped before the value is returned .