protected final boolean decodeTrueWithEvents() { if ( __index + TRUE.length <= charArray.length ) { if ( charArray[ __index ] == 't' && charArray[ ++__index ] == 'r' && charArray[ ++__index ] == 'u' && charArray[ ++__index ] == 'e' ) { if (events!=null) if (!events.bool( __index, true )) stop(); __index++; return true; } } throw new JsonException( exceptionDetails( "true not parsed properly" ) ); }
protected final Object decodeNullWithEvents() { if ( __index + NULL.length <= charArray.length ) { if ( charArray[ __index ] == 'n' && charArray[ ++__index ] == 'u' && charArray[ ++__index ] == 'l' && charArray[ ++__index ] == 'l' ) { __index++; if (events!=null) if (!events.nullValue( __index )) stop(); return null; } } throw new JsonException( exceptionDetails( "null not parse properly" ) ); }
if (!events.objectStart(__index))stop(); if (events!=null) if(!events.objectFieldName( __index, map, (CharSequenceValue) key ))stop(); if (events!=null) if(!events.objectField( __index, map, (CharSequenceValue) key, item ))stop(); skipWhiteSpaceIfNeeded (); if (events!=null) if(!events.objectFieldName( __index, map, (CharSequenceValue) key ))stop(); item = decodeValueInternal(); if (events!=null) if (!events.objectField( __index, map, ( CharSequenceValue ) key, item ))stop(); key = decodeStringDouble( ); if (events!=null) events.objectFieldName( __index, map, (CharSequenceValue) key ); item = decodeValueInternal(); if (events!=null) if(!events.objectField( __index, map, (CharSequenceValue) key, item ))stop(); if (events!=null) if (!events.objectEnd( __index, map ))stop(); return value;
private Value decodeJsonArrayLax(boolean isRoot) { if (events!=null) if (!events.arrayStart( __index )) stop(); if (events!=null) if (!events.arrayItem( __index, list, arrayItem )) stop(); if (events!=null) if (!events.arrayEnd( __index, list )) stop(); return value;
protected final Value decodeNumberLax(boolean minus) { char[] array = charArray; final int startIndex = __index; int index = __index; char currentChar; boolean doubleFloat = false; if (minus && index + 1 < array.length) { index++; } while (true) { currentChar = array[index]; if ( isNumberDigit ( currentChar )) { //noop } else if ( currentChar <= 32 ) { //white break; } else if ( isDelimiter ( currentChar ) ) { break; } else if ( isDecimalChar (currentChar) ) { doubleFloat = true; } index++; if (index >= array.length) break; } __index = index; __currentChar = currentChar; TypeType type = doubleFloat ? TypeType.DOUBLE : TypeType.INT; NumberValue value = new NumberValue ( chop, type, startIndex, __index, this.charArray ); if (events!=null) if (!events.number( startIndex, __index, value ))stop(); return value; }
if (!events.objectStart(__index))stop(); if (events!=null) if(!events.objectFieldName( __index, map, (CharSequenceValue) key ))stop(); if (events!=null) if(!events.objectField( __index, map, (CharSequenceValue) key, item ))stop(); skipWhiteSpaceIfNeeded (); if (events!=null) if(!events.objectFieldName( __index, map, (CharSequenceValue) key ))stop(); item = decodeValueInternal(); if (events!=null) if (!events.objectField( __index, map, ( CharSequenceValue ) key, item ))stop(); key = decodeStringDouble( ); if (events!=null) events.objectFieldName( __index, map, (CharSequenceValue) key ); item = decodeValueInternal(); if (events!=null) if(!events.objectField( __index, map, (CharSequenceValue) key, item ))stop(); if (events!=null) if (!events.objectEnd( __index, map ))stop(); return value;
private Value decodeJsonArrayLax(boolean isRoot) { if (events!=null) if (!events.arrayStart( __index )) stop(); if (events!=null) if (!events.arrayItem( __index, list, arrayItem )) stop(); if (events!=null) if (!events.arrayEnd( __index, list )) stop(); return value;
protected final Value decodeNumberLax(boolean minus) { char[] array = charArray; final int startIndex = __index; int index = __index; char currentChar; boolean doubleFloat = false; if (minus && index + 1 < array.length) { index++; } while (true) { currentChar = array[index]; if ( isNumberDigit ( currentChar )) { //noop } else if ( currentChar <= 32 ) { //white break; } else if ( isDelimiter ( currentChar ) ) { break; } else if ( isDecimalChar (currentChar) ) { doubleFloat = true; } index++; if (index >= array.length) break; } __index = index; __currentChar = currentChar; TypeType type = doubleFloat ? TypeType.DOUBLE : TypeType.INT; NumberValue value = new NumberValue ( chop, type, startIndex, __index, this.charArray ); if (events!=null) if (!events.number( startIndex, __index, value ))stop(); return value; }
if (!events.objectStart(__index))stop(); if (events!=null) if(!events.objectFieldName( __index, map, (CharSequenceValue) key ))stop(); if (events!=null) if(!events.objectField( __index, map, (CharSequenceValue) key, item ))stop(); skipWhiteSpaceIfNeeded (); if (events!=null) if(!events.objectFieldName( __index, map, (CharSequenceValue) key ))stop(); item = decodeValueInternal(); if (events!=null) if (!events.objectField( __index, map, ( CharSequenceValue ) key, item ))stop(); key = decodeStringDouble( ); if (events!=null) events.objectFieldName( __index, map, (CharSequenceValue) key ); item = decodeValueInternal(); if (events!=null) if(!events.objectField( __index, map, (CharSequenceValue) key, item ))stop(); if (events!=null) if (!events.objectEnd( __index, map ))stop(); return value;
private Value decodeJsonArrayLax(boolean isRoot) { if (events!=null) if (!events.arrayStart( __index )) stop(); if (events!=null) if (!events.arrayItem( __index, list, arrayItem )) stop(); if (events!=null) if (!events.arrayEnd( __index, list )) stop(); return value;
protected final boolean decodeTrueWithEvents() { if ( __index + TRUE.length <= charArray.length ) { if ( charArray[ __index ] == 't' && charArray[ ++__index ] == 'r' && charArray[ ++__index ] == 'u' && charArray[ ++__index ] == 'e' ) { if (events!=null) if (!events.bool( __index, true )) stop(); __index++; return true; } } throw new JsonException( exceptionDetails( "true not parsed properly" ) ); }
protected final Object decodeNullWithEvents() { if ( __index + NULL.length <= charArray.length ) { if ( charArray[ __index ] == 'n' && charArray[ ++__index ] == 'u' && charArray[ ++__index ] == 'l' && charArray[ ++__index ] == 'l' ) { __index++; if (events!=null) if (!events.nullValue( __index )) stop(); return null; } } throw new JsonException( exceptionDetails( "null not parse properly" ) ); }
protected final Value decodeNumberLax(boolean minus) { char[] array = charArray; final int startIndex = __index; int index = __index; char currentChar; boolean doubleFloat = false; if (minus && index + 1 < array.length) { index++; } while (true) { currentChar = array[index]; if ( isNumberDigit ( currentChar )) { //noop } else if ( currentChar <= 32 ) { //white break; } else if ( isDelimiter ( currentChar ) ) { break; } else if ( isDecimalChar (currentChar) ) { doubleFloat = true; } index++; if (index >= array.length) break; } __index = index; __currentChar = currentChar; TypeType type = doubleFloat ? TypeType.DOUBLE : TypeType.INT; NumberValue value = new NumberValue ( chop, type, startIndex, __index, this.charArray ); if (events!=null) if (!events.number( startIndex, __index, value ))stop(); return value; }
protected final boolean decodeFalseWithEvents() { if ( __index + FALSE.length <= charArray.length ) { if ( charArray[ __index ] == 'f' && charArray[ ++__index ] == 'a' && charArray[ ++__index ] == 'l' && charArray[ ++__index ] == 's' && charArray[ ++__index ] == 'e' ) { if (events!=null) if (!events.bool( __index, false )) stop(); __index++; return false; } } throw new JsonException( exceptionDetails( "false not parsed properly" ) ); }
protected final Object decodeNullWithEvents() { if ( __index + NULL.length <= charArray.length ) { if ( charArray[ __index ] == 'n' && charArray[ ++__index ] == 'u' && charArray[ ++__index ] == 'l' && charArray[ ++__index ] == 'l' ) { __index++; if (events!=null) if (!events.nullValue( __index )) stop(); return null; } } throw new JsonException( exceptionDetails( "null not parse properly" ) ); }
protected final boolean decodeTrueWithEvents() { if ( __index + TRUE.length <= charArray.length ) { if ( charArray[ __index ] == 't' && charArray[ ++__index ] == 'r' && charArray[ ++__index ] == 'u' && charArray[ ++__index ] == 'e' ) { if (events!=null) if (!events.bool( __index, true )) stop(); __index++; return true; } } throw new JsonException( exceptionDetails( "true not parsed properly" ) ); }
protected final boolean decodeFalseWithEvents() { if ( __index + FALSE.length <= charArray.length ) { if ( charArray[ __index ] == 'f' && charArray[ ++__index ] == 'a' && charArray[ ++__index ] == 'l' && charArray[ ++__index ] == 's' && charArray[ ++__index ] == 'e' ) { if (events!=null) if (!events.bool( __index, false )) stop(); __index++; return false; } } throw new JsonException( exceptionDetails( "false not parsed properly" ) ); }
protected final boolean decodeFalseWithEvents() { if ( __index + FALSE.length <= charArray.length ) { if ( charArray[ __index ] == 'f' && charArray[ ++__index ] == 'a' && charArray[ ++__index ] == 'l' && charArray[ ++__index ] == 's' && charArray[ ++__index ] == 'e' ) { if (events!=null) if (!events.bool( __index, false )) stop(); __index++; return false; } } throw new JsonException( exceptionDetails( "false not parsed properly" ) ); }