Class NodeCursor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String _currentName
      Current field name
      protected java.lang.Object _currentValue  
      protected NodeCursor _parent
      Parent cursor of this cursor, if any; null for root cursors.
      • Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext

        _index, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeCursor​(int contextType, NodeCursor p)  
    • Field Detail

      • _parent

        protected final NodeCursor _parent
        Parent cursor of this cursor, if any; null for root cursors.
      • _currentName

        protected java.lang.String _currentName
        Current field name
      • _currentValue

        protected java.lang.Object _currentValue
        Since:
        2.5
    • Constructor Detail

      • NodeCursor

        public NodeCursor​(int contextType,
                          NodeCursor p)
    • Method Detail

      • getParent

        public final NodeCursor getParent()
        Specified by:
        getParent in class com.fasterxml.jackson.core.JsonStreamContext
      • getCurrentName

        public final java.lang.String getCurrentName()
        Specified by:
        getCurrentName in class com.fasterxml.jackson.core.JsonStreamContext
      • overrideCurrentName

        public void overrideCurrentName​(java.lang.String name)
        Since:
        2.0
      • getCurrentValue

        public java.lang.Object getCurrentValue()
        Overrides:
        getCurrentValue in class com.fasterxml.jackson.core.JsonStreamContext
      • setCurrentValue

        public void setCurrentValue​(java.lang.Object v)
        Overrides:
        setCurrentValue in class com.fasterxml.jackson.core.JsonStreamContext
      • nextToken

        public abstract com.fasterxml.jackson.core.JsonToken nextToken()
      • currentNode

        public abstract JsonNode currentNode()
      • startObject

        public abstract NodeCursor startObject()
      • startArray

        public abstract NodeCursor startArray()
      • iterateChildren

        public final NodeCursor iterateChildren()
        Method called to create a new context for iterating all contents of the current structured value (JSON array or object)