public final class

JsonReadContext

extends JsonStreamContext
java.lang.Object
   ↳ com.fasterxml.jackson.core.JsonStreamContext
     ↳ com.fasterxml.jackson.core.json.JsonReadContext

Class Overview

Extension of JsonStreamContext, which implements core methods needed, and also exposes more complete API to parser implementation classes.

Summary

[Expand]
Inherited Constants
From class com.fasterxml.jackson.core.JsonStreamContext
Fields
protected JsonReadContext _child
protected int _columnNr
protected String _currentName
protected int _lineNr
protected final JsonReadContext _parent
[Expand]
Inherited Fields
From class com.fasterxml.jackson.core.JsonStreamContext
Public Constructors
JsonReadContext(JsonReadContext parent, int type, int lineNr, int colNr)
Public Methods
final JsonReadContext createChildArrayContext(int lineNr, int colNr)
final JsonReadContext createChildObjectContext(int lineNr, int colNr)
static JsonReadContext createRootContext(int lineNr, int colNr)
static JsonReadContext createRootContext()
final boolean expectComma()
final String getCurrentName()
Method for accessing name associated with the current location.
final JsonReadContext getParent()
Accessor for finding parent context of this context; will return null for root context.
final JsonLocation getStartLocation(Object srcRef)
void setCurrentName(String name)
final String toString()
Overridden to provide developer readable "JsonPath" representation of the context.
Protected Methods
final void reset(int type, int lineNr, int colNr)
[Expand]
Inherited Methods
From class com.fasterxml.jackson.core.JsonStreamContext
From class java.lang.Object

Fields

protected JsonReadContext _child

protected int _columnNr

protected String _currentName

protected int _lineNr

protected final JsonReadContext _parent

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 static JsonReadContext createRootContext (int lineNr, int colNr)

public static JsonReadContext createRootContext ()

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.

public final JsonReadContext getParent ()

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)