public abstract class JPropReadContext
extends com.fasterxml.jackson.core.JsonStreamContext
JPropNode
s.Modifier and Type | Class and Description |
---|---|
protected static class |
JPropReadContext.ArrayContext
Cursor used for traversing non-empty JSON Array nodes
|
protected static class |
JPropReadContext.ObjectContext
Cursor used for traversing non-empty JSON Object nodes
|
Modifier and Type | Field and Description |
---|---|
protected String |
_branchText
Optional "this" value for cases where path branches have
direct values; these are exposed before child values
with bogus 'name' of empty String.
|
protected String |
_currentName
Current field name
|
protected String |
_currentText |
protected Object |
_currentValue
Java-level Object that corresponds to this level of input hierarchy,
if any; used by databinding functionality, opaque for parser.
|
protected JPropNode |
_nextNode
We need to keep track of value nodes to construct further contexts.
|
protected JPropReadContext |
_parent
Parent cursor of this cursor, if any; null for root
cursors.
|
protected int |
_state |
Constructor and Description |
---|
JPropReadContext(int contextType,
JPropReadContext p,
JPropNode node) |
Modifier and Type | Method and Description |
---|---|
static JPropReadContext |
create(JPropNode root) |
String |
getCurrentName() |
String |
getCurrentText() |
Object |
getCurrentValue() |
JPropReadContext |
getParent() |
JPropReadContext |
nextContext()
Method called to figure out child or parent context when change
is needed, as indicated by this context returning `null`.
|
abstract com.fasterxml.jackson.core.JsonToken |
nextToken() |
void |
overrideCurrentName(String name) |
void |
setCurrentValue(Object v) |
protected final JPropReadContext _parent
protected String _currentName
protected String _currentText
protected Object _currentValue
protected JPropNode _nextNode
protected String _branchText
protected int _state
public JPropReadContext(int contextType, JPropReadContext p, JPropNode node)
public static JPropReadContext create(JPropNode root)
public final JPropReadContext getParent()
getParent
in class com.fasterxml.jackson.core.JsonStreamContext
public final String getCurrentName()
getCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public void overrideCurrentName(String name)
public Object getCurrentValue()
getCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public void setCurrentValue(Object v)
setCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public abstract com.fasterxml.jackson.core.JsonToken nextToken()
public JPropReadContext nextContext()
public String getCurrentText()
Copyright © 2017 FasterXML. All rights reserved.