public final class JsonReadContext extends JsonStreamContext
JsonStreamContext, which implements
core methods needed, and also exposes
more complete API to parser implementation classes.| 构造器和说明 |
|---|
JsonReadContext(JsonReadContext parent,
int type,
int lineNr,
int colNr) |
| 限定符和类型 | 方法和说明 |
|---|---|
JsonReadContext |
createChildArrayContext(int lineNr,
int colNr) |
JsonReadContext |
createChildObjectContext(int lineNr,
int colNr) |
static JsonReadContext |
createRootContext() |
static JsonReadContext |
createRootContext(int lineNr,
int colNr) |
boolean |
expectComma() |
String |
getCurrentName()
Method for accessing name associated with the current location.
|
JsonReadContext |
getParent()
Accessor for finding parent context of this context; will
return null for root context.
|
JsonLocation |
getStartLocation(Object srcRef) |
void |
setCurrentName(String name) |
String |
toString()
Overridden to provide developer readable "JsonPath" representation
of the context.
|
getCurrentIndex, getEntryCount, getTypeDesc, inArray, inObject, inRootpublic JsonReadContext(JsonReadContext parent, int type, int lineNr, int colNr)
public static JsonReadContext createRootContext(int lineNr, int colNr)
public static JsonReadContext createRootContext()
public final JsonReadContext createChildArrayContext(int lineNr, int colNr)
public final JsonReadContext createChildObjectContext(int lineNr, int colNr)
public final String getCurrentName()
JsonStreamContextFIELD_NAME and value events that directly
follow field names; null for root level and array values.getCurrentName 在类中 JsonStreamContextpublic void setCurrentName(String name)
public final JsonReadContext getParent()
JsonStreamContextgetParent 在类中 JsonStreamContextpublic final JsonLocation getStartLocation(Object srcRef)
public final boolean expectComma()
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.