java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.javaprop.io.JPropWriteContext

public class JPropWriteContext extends tools.jackson.core.TokenStreamContext
  • Field Details

    • _parent

      protected final JPropWriteContext _parent
      Parent context for this context; null for root context.
    • _child

      protected JPropWriteContext _child
    • _currentValue

      protected Object _currentValue
      Value that is being serialized and caused this context to be created; typically a POJO or container type.
    • _gotName

      protected boolean _gotName
      Marker used to indicate that we just received a name, and now expect a value
    • _currentName

      protected String _currentName
      Name of the field of which value is to be parsed; only used for OBJECT contexts
    • _basePathLength

      protected int _basePathLength
  • Constructor Details

    • JPropWriteContext

      protected JPropWriteContext(int type, JPropWriteContext parent, Object currValue, int basePathLength)
  • Method Details

    • reset

      private void reset(int type, Object currValue, int basePathLength)
    • createRootContext

      public static JPropWriteContext createRootContext()
    • createRootContext

      public static JPropWriteContext createRootContext(int basePathLength)
    • createChildArrayContext

      public JPropWriteContext createChildArrayContext(Object currValue, int basePathLength)
    • createChildObjectContext

      public JPropWriteContext createChildObjectContext(Object currValue, int basePathLength)
    • writeName

      public boolean writeName(String name)
    • writeValue

      public boolean writeValue()
    • truncatePath

      public void truncatePath(StringBuilder sb)
    • getParent

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

      public String currentName()
      Specified by:
      currentName in class tools.jackson.core.TokenStreamContext
    • 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
    • appendDesc

      public StringBuilder appendDesc(StringBuilder sb)
    • toString

      public final String toString()
      Overridden to provide developer JsonPointer representation of the context.
      Overrides:
      toString in class tools.jackson.core.TokenStreamContext