Package com.google.gson.internal
Class ConstructorConstructor
java.lang.Object
com.google.gson.internal.ConstructorConstructor
Returns a function that can construct an instance of a requested type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReflectionAccessor
private final Map<Type,
InstanceCreator<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> ObjectConstructor<T>
private <T> ObjectConstructor<T>
newDefaultConstructor
(Class<? super T> rawType) private <T> ObjectConstructor<T>
newDefaultImplementationConstructor
(Type type, Class<? super T> rawType) Constructors for common interface types like Map and List and their subtypes.private <T> ObjectConstructor<T>
newUnsafeAllocator
(Type type, Class<? super T> rawType) toString()
-
Field Details
-
instanceCreators
-
accessor
-
-
Constructor Details
-
ConstructorConstructor
-
-
Method Details
-
get
-
newDefaultConstructor
-
newDefaultImplementationConstructor
private <T> ObjectConstructor<T> newDefaultImplementationConstructor(Type type, Class<? super T> rawType) Constructors for common interface types like Map and List and their subtypes. -
newUnsafeAllocator
-
toString
-