BaseJsonNode#toString (and related) method.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | InternalNodeSerializer.
Optimized variant similar in functionality to (a subset of)
|
| protected static class | InternalNodeSerializer.
Intermediate serializer we need to implement non-recursive serialization of
|
| Modifier and Type | Field and Description |
|---|---|
| private static final ObjectWriter | |
| private static final JsonMapper | |
| private static final ObjectWriter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static JacksonSerializable | |
| public static String | |
| public static String |
| COMPACT_WRITER | back to summary |
|---|---|
| private static final ObjectWriter COMPACT_WRITER | |
| MAPPER | back to summary |
|---|---|
| private static final JsonMapper MAPPER | |
| PRETTY_WRITER | back to summary |
|---|---|
| private static final ObjectWriter PRETTY_WRITER | |
| InternalNodeSerializer | back to summary |
|---|---|
| pack-priv InternalNodeSerializer() | |
| _wrapper | back to summary |
|---|---|
| private static JacksonSerializable _wrapper(BaseJsonNode root) | |
| toPrettyString | back to summary |
|---|---|
| public static String toPrettyString(BaseJsonNode root) | |
| toString | back to summary |
|---|---|
| public static String toString(BaseJsonNode root) | |
java.util.ArrayDeque ; used to hold enclosing Array/Object
nodes during recursion-as-iteration.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Iterator | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | |
| public void |
| _end | back to summary |
|---|---|
| private int _end | |
| _stack | back to summary |
|---|---|
| private Iterator<?>[] _stack | |
| _top | back to summary |
|---|---|
| private int _top | |
| IteratorStack | back to summary |
|---|---|
| public IteratorStack() | |
| popOrNull | back to summary |
|---|---|
| public Iterator | |
| push | back to summary |
|---|---|
| public void push(Iterator<?> it) | |
BaseJsonNode
| Modifier and Type | Field and Description |
|---|---|
| protected SerializationContext | |
| protected final BaseJsonNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | _serializeNonRecursive(JsonGenerator g, InternalNodeSerializer.
|
| public void | serialize(JsonGenerator g, SerializationContext ctxt)
Implements tools. Serialization method called when no additional type information is to be included in serialization. |
| public void | serializeWithType(JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer)
Implements tools. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use. |
| _context | back to summary |
|---|---|
| protected SerializationContext _context | |
| _root | back to summary |
|---|---|
| protected final BaseJsonNode _root | |
| WrapperForSerializer | back to summary |
|---|---|
| public WrapperForSerializer(BaseJsonNode root) | |
| _serializeNonRecursive | back to summary |
|---|---|
| protected void _serializeNonRecursive(JsonGenerator g, JsonNode node) throws JacksonException | |
| _serializeNonRecursive | back to summary |
|---|---|
| protected void _serializeNonRecursive(JsonGenerator g, InternalNodeSerializer. | |
| serialize | back to summary |
|---|---|
| public void serialize(JsonGenerator g, SerializationContext ctxt) throws JacksonException Implements tools. Doc from tools. Serialization method called when no additional type information is to be included in serialization.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer) throws JacksonException Implements tools. Doc from tools. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.
Usually implementation consists of a call to Note that some types (most notably, "natural" types: String, Integer, Double and Boolean) never include type information.
| |