Class NodeCursor
java.lang.Object
com.fasterxml.jackson.core.JsonStreamContext
com.fasterxml.jackson.databind.node.NodeCursor
- Direct Known Subclasses:
NodeCursor.ArrayCursor,NodeCursor.ObjectCursor,NodeCursor.RootCursor
abstract class NodeCursor
extends com.fasterxml.jackson.core.JsonStreamContext
Helper class used by
TreeTraversingParser to keep track
of current location within traversed JSON tree.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classprotected static final classprotected static final classContext for all root-level value nodes (including Arrays and Objects): only context for scalar values. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringCurrent field nameprotected Objectprotected final NodeCursorParent cursor of this cursor, if any; null for root cursors.Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract JsonNodefinal Stringfinal NodeCursorfinal NodeCursorMethod called to create a new context for iterating all contents of the current structured value (JSON array or object)abstract com.fasterxml.jackson.core.JsonTokenvoidoverrideCurrentName(String name) voidabstract NodeCursorabstract NodeCursorMethods inherited from class com.fasterxml.jackson.core.JsonStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, getStartLocation, getTypeDesc, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, toString, typeDesc
-
Field Details
-
_parent
Parent cursor of this cursor, if any; null for root cursors. -
_currentName
Current field name -
_currentValue
- Since:
- 2.5
-
-
Constructor Details
-
NodeCursor
-
-
Method Details
-
getParent
- Specified by:
getParentin classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.JsonStreamContext
-
overrideCurrentName
- Since:
- 2.0
-
getCurrentValue
- Overrides:
getCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
nextToken
public abstract com.fasterxml.jackson.core.JsonToken nextToken() -
currentNode
-
startObject
-
startArray
-
iterateChildren
Method called to create a new context for iterating all contents of the current structured value (JSON array or object)
-