Class NodeCursor
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.databind.node.NodeCursor
- Direct Known Subclasses:
NodeCursor.ArrayCursor, NodeCursor.ObjectCursor, NodeCursor.RootCursor
abstract class NodeCursor
extends tools.jackson.core.TokenStreamContext
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 tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal Stringabstract JsonNodefinal NodeCursorfinal NodeCursorMethod called to create a new context for iterating all contents of the current structured value (JSON array or object)abstract tools.jackson.core.JsonTokenvoidoverrideCurrentName(String name) abstract NodeCursorabstract NodeCursorMethods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, 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 classtools.jackson.core.TokenStreamContext
-
currentName
- Specified by:
currentNamein classtools.jackson.core.TokenStreamContext
-
overrideCurrentName
-
currentValue
- Overrides:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.TokenStreamContext
-
nextToken
public abstract tools.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)
-