protected final JsonToken _fieldComplete(String name) throws IOException { _majorState = MAJOR_OBJECT_VALUE; _parsingContext.setCurrentName(name); return (_currToken = JsonToken.FIELD_NAME); }
protected final JsonToken _fieldComplete(String name) throws IOException { _majorState = MAJOR_OBJECT_VALUE; _parsingContext.setCurrentName(name); return (_currToken = JsonToken.FIELD_NAME); }
@Override public void overrideCurrentName(String name) { // Simple, but need to look for START_OBJECT/ARRAY's "off-by-one" thing: JsonReadContext ctxt = _parsingContext; if (_currToken == JsonToken.START_OBJECT || _currToken == JsonToken.START_ARRAY) { ctxt = ctxt.getParent(); } /* 24-Sep-2013, tatu: Unfortunate, but since we did not expose exceptions, * need to wrap this here */ try { ctxt.setCurrentName(name); } catch (IOException e) { throw new IllegalStateException(e); } }
@Override public void overrideCurrentName(String name) { // Simple, but need to look for START_OBJECT/ARRAY's "off-by-one" thing: JsonReadContext ctxt = _parsingContext; if (_currToken == JsonToken.START_OBJECT || _currToken == JsonToken.START_ARRAY) { ctxt = ctxt.getParent(); } // 24-Sep-2013, tatu: Unfortunate, but since we did not expose exceptions, // need to wrap this here try { ctxt.setCurrentName(name); } catch (IOException e) { throw new IllegalStateException(e); } }
_parsingContext.setCurrentName(name); _currToken = JsonToken.FIELD_NAME; i = _skipColon();
_parsingContext.setCurrentName(n); final boolean match = n.equals(str.getValue()); _currToken = JsonToken.FIELD_NAME;
_parsingContext.setCurrentName(name); _currToken = JsonToken.FIELD_NAME; i = _skipColon();
_parsingContext.setCurrentName(n); final boolean match = n.equals(str.getValue()); _currToken = JsonToken.FIELD_NAME;
while (true) { if (ptr == end) { // yes, match! _parsingContext.setCurrentName(sstr.getValue()); _isNextTokenNameYes(_skipColonFast(ptr+1)); return true;
while (true) { if (ptr == end) { // yes, match! _parsingContext.setCurrentName(str.getValue()); i = _skipColonFast(ptr+1); _isNextTokenNameYes(i);
_parsingContext.setCurrentName(nameStr); _currToken = JsonToken.FIELD_NAME;
while (true) { if (ptr == end) { // yes, match! _parsingContext.setCurrentName(sstr.getValue()); _isNextTokenNameYes(_skipColonFast(ptr+1)); return true;
_parsingContext.setCurrentName(name); _currToken = JsonToken.FIELD_NAME; i = _skipColon();
_parsingContext.setCurrentName(n); _currToken = JsonToken.FIELD_NAME;
_parsingContext.setCurrentName(nameStr); _currToken = JsonToken.FIELD_NAME;
_parsingContext.setCurrentName(name); _currToken = JsonToken.FIELD_NAME; i = _skipColon();
_parsingContext.setCurrentName(n); _currToken = JsonToken.FIELD_NAME;
while (true) { if (ptr == end) { // yes, match! _parsingContext.setCurrentName(str.getValue()); i = _skipColonFast(ptr+1); _isNextTokenNameYes(i);
_parsingContext.setCurrentName(nameStr); _currToken = JsonToken.FIELD_NAME;
String name = scalar.getValue(); _currentFieldName = name; _parsingContext.setCurrentName(name); _currentAnchor = scalar.getAnchor(); return (_currToken = JsonToken.FIELD_NAME);