Class Overview
Extension of JsonStreamContext
, which implements
core methods needed, and also exposes
more complete API to parser implementation classes.
Summary
Protected Methods |
final
void
|
reset(int type, int lineNr, int colNr)
|
[Expand]
Inherited Methods |
From class
com.fasterxml.jackson.core.JsonStreamContext
final
int
|
getCurrentIndex()
|
abstract
String
|
getCurrentName()
Method for accessing name associated with the current location.
|
final
int
|
getEntryCount()
|
abstract
JsonStreamContext
|
getParent()
Accessor for finding parent context of this context; will
return null for root context.
|
final
String
|
getTypeDesc()
Method for accessing simple type description of current context;
either ROOT (for root-level values), OBJECT (for field names and
values of JSON Objects) or ARRAY (for values of JSON Arrays)
|
final
boolean
|
inArray()
Method that returns true if this context is an Array context;
that is, content is being read from or written to a Json Array.
|
final
boolean
|
inObject()
Method that returns true if this context is an Object context;
that is, content is being read from or written to a Json Object.
|
final
boolean
|
inRoot()
Method that returns true if this context is a Root context;
that is, content is being read from or written to without
enclosing array or object structure.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
public
JsonReadContext
(JsonReadContext parent, int type, int lineNr, int colNr)
Public Methods
public
final
JsonReadContext
createChildArrayContext
(int lineNr, int colNr)
public
final
JsonReadContext
createChildObjectContext
(int lineNr, int colNr)
public
final
boolean
expectComma
()
public
final
String
getCurrentName
()
Method for accessing name associated with the current location.
Non-null for FIELD_NAME
and value events that directly
follow field names; null for root level and array values.
Accessor for finding parent context of this context; will
return null for root context.
public
final
JsonLocation
getStartLocation
(Object srcRef)
Returns
- Location pointing to the point where the context
start marker was found
public
void
setCurrentName
(String name)
public
final
String
toString
()
Overridden to provide developer readable "JsonPath" representation
of the context.
Protected Methods
protected
final
void
reset
(int type, int lineNr, int colNr)