Uses of Class
nonapi.io.github.classgraph.json.ClassFieldCache
Packages that use ClassFieldCache
-
Uses of ClassFieldCache in nonapi.io.github.classgraph.json
Methods in nonapi.io.github.classgraph.json with parameters of type ClassFieldCacheModifier and TypeMethodDescriptionprivate static void
JSONSerializer.assignObjectIds
(Object jsonVal, Map<ReferenceEqualityKey<Object>, JSONObject> objToJSONVal, ClassFieldCache classFieldCache, Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, AtomicInteger objId, boolean onlySerializePublicFields) Create a unique id for each referenced JSON object.private static void
JSONSerializer.convertVals
(Object[] convertedVals, Set<ReferenceEqualityKey<Object>> visitedOnPath, Set<ReferenceEqualityKey<Object>> standardObjectVisited, ClassFieldCache classFieldCache, Map<ReferenceEqualityKey<Object>, JSONObject> objToJSONVal, boolean onlySerializePublicFields) Take an array of object values, and recursively convert them (in place) into JSON values.private static <T> T
JSONDeserializer.deserializeObject
(Class<T> expectedType, String json, ClassFieldCache classFieldCache) Deserialize JSON to a new object graph, with the root object of the specified expected type, using or reusing the given type cache.static void
JSONDeserializer.deserializeToField
(Object containingObject, String fieldName, String json, ClassFieldCache classFieldCache) Deserialize JSON to a new object graph, with the root object of the specified expected type, and store the root object in the named field of the given containing object.Constructor
<?> FieldTypeInfo.getConstructorForFieldTypeWithSizeHint
(Type fieldTypeFullyResolved, ClassFieldCache classFieldCache) Get the constructor with size hint for the field type.Constructor
<?> FieldTypeInfo.getDefaultConstructorForFieldType
(Type fieldTypeFullyResolved, ClassFieldCache classFieldCache) Get the default constructor for the field type.private static void
JSONDeserializer.populateObjectFromJsonObject
(Object objectInstance, Type objectResolvedType, Object jsonVal, ClassFieldCache classFieldCache, Map<CharSequence, Object> idToObjectInstance, List<Runnable> collectionElementAdders) Populate object from json object.static String
JSONSerializer.serializeFromField
(Object containingObject, String fieldName, int indentWidth, boolean onlySerializePublicFields, ClassFieldCache classFieldCache) Recursively serialize the named field of an object, skipping transient and final fields.static String
JSONSerializer.serializeObject
(Object obj, int indentWidth, boolean onlySerializePublicFields, ClassFieldCache classFieldCache) Recursively serialize an Object (or array, list, map or set of objects) to JSON, skipping transient and final fields.private static Object
JSONSerializer.toJSONGraph
(Object obj, Set<ReferenceEqualityKey<Object>> visitedOnPath, Set<ReferenceEqualityKey<Object>> standardObjectVisited, ClassFieldCache classFieldCache, Map<ReferenceEqualityKey<Object>, JSONObject> objToJSONVal, boolean onlySerializePublicFields) Turn an object graph into a graph of JSON objects, arrays, and values.Constructors in nonapi.io.github.classgraph.json with parameters of type ClassFieldCacheModifierConstructorDescriptionClassFields
(Class<?> cls, boolean resolveTypes, boolean onlySerializePublicFields, ClassFieldCache classFieldCache, ReflectionUtils reflectionUtils) Constructor.FieldTypeInfo
(Field field, Type fieldTypePartiallyResolved, ClassFieldCache classFieldCache) Constructor.