public interface ReaderContext
Modifier and Type | Method and Description |
---|---|
ReadOptions |
getReadOptions() |
ReferenceTracker |
getReferences() |
<T> T |
reentrantConvertParsedMapsToJava(JsonObject root,
Class<T> hint)
This method converts a rootObj Map, (which contains nested Maps
and so forth representing a Java Object graph), to a Java
object instance.
|
void |
traverseFields(Deque<JsonObject> stack,
JsonObject jsonObj)
Walk the Java object fields and copy them from the JSON object to the Java object, performing
any necessary conversions on primitives, or deep traversals for field assignments to other objects,
arrays, Collections, or Maps.
|
ReferenceTracker getReferences()
<T> T reentrantConvertParsedMapsToJava(JsonObject root, Class<T> hint)
root
- JsonObject instance that was the rootObj object from thehint
- When you know the type you will be returning. Can be null (effectively Map.class)
JSON input that was parsed in an earlier call to JsonReader.void traverseFields(Deque<JsonObject> stack, JsonObject jsonObj)
stack
- Stack (Deque) used for graph traversal.jsonObj
- a Map-of-Map representation of the current object being examined (containing all fields).ReadOptions getReadOptions()
Copyright © 2023. All rights reserved.