Class TomlWriteContext

java.lang.Object
com.fasterxml.jackson.core.JsonStreamContext
com.fasterxml.jackson.dataformat.toml.TomlWriteContext

final class TomlWriteContext extends com.fasterxml.jackson.core.JsonStreamContext
  • Field Details

    • _parent

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

      protected TomlWriteContext _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
    • _inline

      boolean _inline
  • Constructor Details

    • TomlWriteContext

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

    • reset

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

      static TomlWriteContext createRootContext()
    • createRootContext

      static TomlWriteContext createRootContext(int basePathLength)
    • createChildArrayContext

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

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

      public boolean writeName(String name)
    • writeValue

      public boolean writeValue()
    • truncatePath

      public void truncatePath(StringBuilder sb)
    • getParent

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

      public String getCurrentName()
      Specified by:
      getCurrentName in class com.fasterxml.jackson.core.JsonStreamContext
    • getCurrentValue

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

      public void setCurrentValue(Object v)
      Overrides:
      setCurrentValue in class com.fasterxml.jackson.core.JsonStreamContext
    • appendDesc

      public StringBuilder appendDesc(StringBuilder sb)
    • toString

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