Module com.google.gson
Package com.google.gson.internal.bind
Class ReflectiveTypeAdapterFactory.BoundField
- java.lang.Object
-
- com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.BoundField
-
- Enclosing class:
- ReflectiveTypeAdapterFactory
abstract static class ReflectiveTypeAdapterFactory.BoundField extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
deserialized
(package private) java.lang.reflect.Field
field
(package private) java.lang.String
fieldName
Name of the underlying field(package private) java.lang.String
name
(package private) boolean
serialized
-
Constructor Summary
Constructors Modifier Constructor Description protected
BoundField(java.lang.String name, java.lang.reflect.Field field, boolean serialized, boolean deserialized)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description (package private) abstract void
readIntoArray(JsonReader reader, int index, java.lang.Object[] target)
Read the value into the target array, used to provide constructor arguments for records(package private) abstract void
readIntoField(JsonReader reader, java.lang.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, java.lang.Object source)
Read this field value from the source, and append its JSON value to the writer
-
-
-
Method Detail
-
write
abstract void write(JsonWriter writer, java.lang.Object source) throws java.io.IOException, java.lang.IllegalAccessException
Read this field value from the source, and append its JSON value to the writer- Throws:
java.io.IOException
java.lang.IllegalAccessException
-
readIntoArray
abstract void readIntoArray(JsonReader reader, int index, java.lang.Object[] target) throws java.io.IOException, JsonParseException
Read the value into the target array, used to provide constructor arguments for records- Throws:
java.io.IOException
JsonParseException
-
readIntoField
abstract void readIntoField(JsonReader reader, java.lang.Object target) throws java.io.IOException, java.lang.IllegalAccessException
Read the value from the reader, and set it on the corresponding field on target via reflection- Throws:
java.io.IOException
java.lang.IllegalAccessException
-
-