org.codehaus.jackson.impl
Class JsonReadContext
java.lang.Object
org.codehaus.jackson.JsonStreamContext
org.codehaus.jackson.impl.JsonReadContext
public final class JsonReadContext
- extends JsonStreamContext
Extension of JsonStreamContext
, which implements
core methods needed, and also exposes
more complete API to parser implementation classes.
_parent
protected final JsonReadContext _parent
_lineNr
protected int _lineNr
_columnNr
protected int _columnNr
_currentName
protected String _currentName
JsonReadContext
public JsonReadContext(JsonReadContext parent,
int type,
int lineNr,
int colNr)
reset
protected final void reset(int type,
int lineNr,
int colNr)
createRootContext
public static JsonReadContext createRootContext(int lineNr,
int colNr)
createChildArrayContext
public final JsonReadContext createChildArrayContext(int lineNr,
int colNr)
createChildObjectContext
public final JsonReadContext createChildObjectContext(int lineNr,
int colNr)
getCurrentName
public final String getCurrentName()
- Specified by:
getCurrentName
in class JsonStreamContext
getParent
public final JsonReadContext getParent()
- Specified by:
getParent
in class JsonStreamContext
getStartLocation
public final JsonLocation getStartLocation(Object srcRef)
- Returns:
- Location pointing to the point where the context
start marker was found
expectComma
public final boolean expectComma()
setCurrentName
public void setCurrentName(String name)
toString
public final String toString()
- Overridden to provide developer readable "JsonPath" representation
of the context.
- Overrides:
toString
in class Object