SerializerExtension that deserializes objects inside an ImmutableMap.
Enables unserializable objects inside an ImmutableMap 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 javax. | |
| private static boolean |
| ImmutableMapSerializerExtension | back to summary |
|---|---|
| public ImmutableMapSerializerExtension() | |
| getKeyType | back to summary |
|---|---|
| private static javax. | |
| getSerializer | back to summary |
|---|---|
| public Optional Implements com. Doc from com. Returns a
| |
| getValueType | back to summary |
|---|---|
| private static javax. | |
| isImmutableMap | back to summary |
|---|---|
| private static boolean isImmutableMap(javax. | |
| Modifier and Type | Field and Description |
|---|---|
| private final SerializerFactory | |
| private final javax. | |
| private final javax. | |
| private final Serializer | |
| private final javax. | |
| private final javax. | |
| private final javax. | |
| private final Serializer |
| Access | Constructor and Description |
|---|---|
| pack-priv | ImmutableMapSerializer(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. |
| private CodeBlock | generateKeyMapFunction(javax.
|
| private CodeBlock | generateValueMapFunction(javax.
|
| 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. |
| factory | back to summary |
|---|---|
| private final SerializerFactory factory | |
| keyProxyType | back to summary |
|---|---|
| private final javax. | |
| keyType | back to summary |
|---|---|
| private final javax. | |
| keyTypeSerializer | back to summary |
|---|---|
| private final Serializer keyTypeSerializer | |
| processingEnv | back to summary |
|---|---|
| private final javax. | |
| valueProxyType | back to summary |
|---|---|
| private final javax. | |
| valueType | back to summary |
|---|---|
| private final javax. | |
| valueTypeSerializer | back to summary |
|---|---|
| private final Serializer valueTypeSerializer | |
| ImmutableMapSerializer | back to summary |
|---|---|
| pack-priv ImmutableMapSerializer(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.
| |
| generateKeyMapFunction | back to summary |
|---|---|
| private CodeBlock generateKeyMapFunction(javax. | |
| generateValueMapFunction | back to summary |
|---|---|
| private CodeBlock generateValueMapFunction(javax. | |
| 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.
| |