Class JPropReadContext

java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.javaprop.io.JPropReadContext
Direct Known Subclasses:
JPropReadContext.ArrayContext, JPropReadContext.ObjectContext

public abstract class JPropReadContext extends tools.jackson.core.TokenStreamContext
Helper class used to keep track of traversal over contents of content tree expressed as JPropNodes.
  • Field Details

    • _parent

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

      protected String _currentName
      Current property name
    • _currentText

      protected String _currentText
    • _currentValue

      protected 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 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 Details

  • Method Details

    • create

      public static JPropReadContext create(JPropNode root)
    • getParent

      public final JPropReadContext getParent()
      Specified by:
      getParent in class tools.jackson.core.TokenStreamContext
    • currentName

      public final String currentName()
      Specified by:
      currentName in class tools.jackson.core.TokenStreamContext
    • overrideCurrentName

      public void overrideCurrentName(String name)
    • currentValue

      public Object currentValue()
      Overrides:
      currentValue in class tools.jackson.core.TokenStreamContext
    • assignCurrentValue

      public void assignCurrentValue(Object v)
      Overrides:
      assignCurrentValue in class tools.jackson.core.TokenStreamContext
    • nextToken

      public abstract tools.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 String getCurrentText()