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
ConstructorsModifierConstructorDescriptionprotectedBoundField(String name, Field field, boolean serialized, boolean deserialized) -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidreadIntoArray(JsonReader reader, int index, Object[] target) Read the value into the target array, used to provide constructor arguments for records(package private) abstract voidreadIntoField(JsonReader reader, Object target) Read the value from the reader, and set it on the corresponding field on target via reflection(package private) abstract voidwrite(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:
IOExceptionIllegalAccessException
-
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:
IOExceptionJsonParseException
-
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:
IOExceptionIllegalAccessException
-