Package com.google.gson.internal.bind
Class ReflectiveTypeAdapterFactory.BoundField
java.lang.Object
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
- Enclosing class:
ReflectiveTypeAdapterFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BoundField
(String name, Field field, boolean serialized, boolean deserialized) -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
readIntoArray
(JsonReader reader, int index, Object[] target) Read the value into the target array, used to provide constructor arguments for records(package private) abstract void
readIntoField
(JsonReader reader, Object target) Read the value from the reader, and set it on the corresponding field on target via reflection(package private) abstract void
write
(JsonWriter writer, Object source) Read this field value from the source, and append its JSON value to the writer
-
Field Details
-
name
-
field
-
fieldName
Name of the underlying field -
serialized
final boolean serialized -
deserialized
final boolean deserialized
-
-
Constructor Details
-
BoundField
-
-
Method Details
-
write
Read this field value from the source, and append its JSON value to the writer- Throws:
IOException
IllegalAccessException
-
readIntoArray
abstract void readIntoArray(JsonReader reader, int index, Object[] target) throws IOException, JsonParseException Read the value into the target array, used to provide constructor arguments for records- Throws:
IOException
JsonParseException
-
readIntoField
abstract void readIntoField(JsonReader reader, Object target) throws IOException, IllegalAccessException Read the value from the reader, and set it on the corresponding field on target via reflection- Throws:
IOException
IllegalAccessException
-