Class JPropReadContext
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonStreamContext
-
- com.fasterxml.jackson.dataformat.javaprop.io.JPropReadContext
-
- Direct Known Subclasses:
JPropReadContext.ArrayContext,JPropReadContext.ObjectContext
public abstract class JPropReadContext extends com.fasterxml.jackson.core.JsonStreamContextHelper class used to keep track of traversal over contents of content tree expressed asJPropNodes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classJPropReadContext.ArrayContextCursor used for traversing non-empty JSON Array nodesprotected static classJPropReadContext.ObjectContextCursor used for traversing non-empty JSON Object nodes
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String_branchTextOptional "this" value for cases where path branches have direct values; these are exposed before child values with bogus 'name' of empty String.protected java.lang.String_currentNameCurrent field nameprotected java.lang.String_currentTextprotected java.lang.Object_currentValueJava-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser.protected JPropNode_nextNodeWe need to keep track of value nodes to construct further contexts.protected JPropReadContext_parentParent cursor of this cursor, if any; null for root cursors.protected int_state
-
Constructor Summary
Constructors Constructor Description JPropReadContext(int contextType, JPropReadContext p, JPropNode node)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static JPropReadContextcreate(JPropNode root)java.lang.StringgetCurrentName()java.lang.StringgetCurrentText()java.lang.ObjectgetCurrentValue()JPropReadContextgetParent()JPropReadContextnextContext()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.JsonTokennextToken()voidoverrideCurrentName(java.lang.String name)voidsetCurrentValue(java.lang.Object v)
-
-
-
Field Detail
-
_parent
protected final JPropReadContext _parent
Parent cursor of this cursor, if any; null for root cursors.
-
_currentName
protected java.lang.String _currentName
Current field name
-
_currentText
protected java.lang.String _currentText
-
_currentValue
protected java.lang.Object _currentValue
Java-level Object that corresponds to this level of input hierarchy, if any; used by databinding functionality, opaque for parser.
-
_nextNode
protected JPropNode _nextNode
We need to keep track of value nodes to construct further contexts.
-
_branchText
protected java.lang.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.
-
_state
protected int _state
-
-
Constructor Detail
-
JPropReadContext
public JPropReadContext(int contextType, JPropReadContext p, JPropNode node)
-
-
Method Detail
-
create
public static JPropReadContext create(JPropNode root)
-
getParent
public final JPropReadContext getParent()
- Specified by:
getParentin classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
public final java.lang.String getCurrentName()
- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.JsonStreamContext
-
overrideCurrentName
public void overrideCurrentName(java.lang.String name)
-
getCurrentValue
public java.lang.Object getCurrentValue()
- Overrides:
getCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
public void setCurrentValue(java.lang.Object v)
- Overrides:
setCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
nextToken
public abstract com.fasterxml.jackson.core.JsonToken nextToken()
-
nextContext
public JPropReadContext nextContext()
Method called to figure out child or parent context when change is needed, as indicated by this context returning `null`.
-
getCurrentText
public java.lang.String getCurrentText()
-
-