| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected TomlWriteContext | |
| protected String | _currentName
Name of the field of which value is to be parsed; only used for OBJECT contexts |
| protected Object | _currentValue
Value that is being serialized and caused this context to be created; typically a POJO or container type. |
| protected boolean | _gotName
Marker used to indicate that we just received a name, and now expect a value |
| pack-priv boolean | |
| protected final TomlWriteContext | _parent
Parent context for this context; null for root context. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuilder | |
| public TomlWriteContext | |
| public TomlWriteContext | |
| pack-priv static TomlWriteContext | |
| pack-priv static TomlWriteContext | |
| public String | getCurrentName()
Implements abstract com. Method for accessing name associated with the current location. |
| public Object | getCurrentValue()
Overrides com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. |
| public final TomlWriteContext | getParent()
Implements abstract com. Accessor for finding parent context of this context; will return null for root context. |
| private void | |
| public void | setCurrentValue(Object
Current value to assign to this context v)Overrides com. Method to call to pass value to be returned via |
| public final String | toString()
Overrides com. Overridden to provide developer JsonPointer representation of the context. |
| public void | |
| public boolean | |
| public boolean |
| _basePathLength | back to summary |
|---|---|
| protected int _basePathLength | |
| _child | back to summary |
|---|---|
| protected TomlWriteContext _child | |
| _currentName | back to summary |
|---|---|
| protected String _currentName Name of the field of which value is to be parsed; only used for OBJECT contexts | |
| _currentValue | back to summary |
|---|---|
| protected Object _currentValue Value that is being serialized and caused this context to be created; typically a POJO or container type. | |
| _gotName | back to summary |
|---|---|
| protected boolean _gotName Marker used to indicate that we just received a name, and now expect a value | |
| _inline | back to summary |
|---|---|
| pack-priv boolean _inline | |
| _parent | back to summary |
|---|---|
| protected final TomlWriteContext _parent Parent context for this context; null for root context. | |
| TomlWriteContext | back to summary |
|---|---|
| pack-priv TomlWriteContext(int type, TomlWriteContext parent, Object currValue, int basePathLength) | |
| appendDesc | back to summary |
|---|---|
| public StringBuilder appendDesc(StringBuilder sb) | |
| createChildArrayContext | back to summary |
|---|---|
| public TomlWriteContext createChildArrayContext(Object currValue, int basePathLength) | |
| createChildObjectContext | back to summary |
|---|---|
| public TomlWriteContext createChildObjectContext(Object currValue, int basePathLength) | |
| createRootContext | back to summary |
|---|---|
| pack-priv static TomlWriteContext createRootContext() | |
| createRootContext | back to summary |
|---|---|
| pack-priv static TomlWriteContext createRootContext(int basePathLength) | |
| getCurrentName | back to summary |
|---|---|
| public String getCurrentName() Implements abstract com. Doc from com. Method for accessing name associated with the current location.
Non-null for | |
| getCurrentValue | back to summary |
|---|---|
| public Object getCurrentValue() Overrides com. Doc from com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding. | |
| getParent | back to summary |
|---|---|
| public final TomlWriteContext getParent() Implements abstract com. Doc from com. Accessor for finding parent context of this context; will return null for root context.
| |
| reset | back to summary |
|---|---|
| private void reset(int type, Object currValue, int basePathLength) | |
| setCurrentValue | back to summary |
|---|---|
| public void setCurrentValue(Object v) Overrides com. Doc from com. Method to call to pass value to be returned via | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides com. Overridden to provide developer JsonPointer representation of the context.
| |
| truncatePath | back to summary |
|---|---|
| public void truncatePath(StringBuilder sb) | |
| writeName | back to summary |
|---|---|
| public boolean writeName(String name) | |
| writeValue | back to summary |
|---|---|
| public boolean writeValue() | |