SerializerExtension that deserializes objects inside an ImmutableList.
Enables unserializable objects inside an ImmutableList to be serializable.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static javax. | |
| public Optional | getSerializer(javax.
the type being serialized typeMirror,a factory, javax.SerializerFactory that can be used to serialize nested typesthe processing environment provided by the annotation processing framework processingEnvImplements com. Returns a |
| private static boolean |
| ImmutableListSerializerExtension | back to summary |
|---|---|
| public ImmutableListSerializerExtension() | |
| getContainedType | back to summary |
|---|---|
| private static javax. | |
| getSerializer | back to summary |
|---|---|
| public Optional Implements com. Doc from com. Returns a
| |
| isImmutableList | back to summary |
|---|---|
| private static boolean isImmutableList(javax. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Serializer | |
| private final SerializerFactory | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ImmutableListSerializer(Serializer containedTypeSerializer, SerializerFactory factory, javax.
|
| Modifier and Type | Method and Description |
|---|---|
| public CodeBlock | fromProxy(CodeBlock expression)
Implements com. Creates an expression that converts the proxy type back to the original type. |
| public javax. | proxyFieldType()
Implements com. The proxy type the original unserializable type will be mapped to. |
| public CodeBlock | toProxy(CodeBlock expression)
Implements com. Creates an expression that converts the original type to the proxy type. |
| containedTypeSerializer | back to summary |
|---|---|
| private final Serializer containedTypeSerializer | |
| factory | back to summary |
|---|---|
| private final SerializerFactory factory | |
| processingEnv | back to summary |
|---|---|
| private final javax. | |
| ImmutableListSerializer | back to summary |
|---|---|
| pack-priv ImmutableListSerializer(Serializer containedTypeSerializer, SerializerFactory factory, javax. | |
| fromProxy | back to summary |
|---|---|
| public CodeBlock fromProxy(CodeBlock expression) Implements com. Doc from com. Creates an expression that converts the proxy type back to the original type.
| |
| proxyFieldType | back to summary |
|---|---|
| public javax. Implements com. Doc from com. The proxy type the original unserializable type will be mapped to.
| |
| toProxy | back to summary |
|---|---|
| public CodeBlock toProxy(CodeBlock expression) Implements com. Doc from com. Creates an expression that converts the original type to the proxy type.
| |