Class JSONDeserializer.ObjectInstantiation

java.lang.Object
nonapi.io.github.classgraph.json.JSONDeserializer.ObjectInstantiation
Enclosing class:
JSONDeserializer

private static class JSONDeserializer.ObjectInstantiation extends Object
Used to hold object instantiations temporarily before their fields can be populated, so that object references can be resolved in the same order during deserialization as they were created during serialization.
  • Field Details

    • jsonVal

      Object jsonVal
      The JSONObject or JSONArray to recurse into.
    • objectInstance

      Object objectInstance
      The Java object instance to populate from the JSONObject or JSONArray.
    • type

      Type type
      The resolved type of the object instance.
  • Constructor Details

    • ObjectInstantiation

      public ObjectInstantiation(Object objectInstance, Type type, Object jsonVal)
      Constructor.
      Parameters:
      objectInstance - the object instance
      type - the type
      jsonVal - the json val