Interface Serializer
-
public interface SerializerA Serializer, at compile time, generates code to map an unserializable type to a serializable type. It also generates the reverse code to re-create the original type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description com.squareup.javapoet.CodeBlockfromProxy(com.squareup.javapoet.CodeBlock expression)Creates an expression that converts the proxy type back to the original type.default booleanisIdentity()Returns true if this is an identitySerializer.TypeMirrorproxyFieldType()The proxy type the original unserializable type will be mapped to.com.squareup.javapoet.CodeBlocktoProxy(com.squareup.javapoet.CodeBlock expression)Creates an expression that converts the original type to the proxy type.
-
-
-
Method Detail
-
proxyFieldType
TypeMirror proxyFieldType()
The proxy type the original unserializable type will be mapped to.
-
toProxy
com.squareup.javapoet.CodeBlock toProxy(com.squareup.javapoet.CodeBlock expression)
Creates an expression that converts the original type to the proxy type.
-
fromProxy
com.squareup.javapoet.CodeBlock fromProxy(com.squareup.javapoet.CodeBlock expression)
Creates an expression that converts the proxy type back to the original type.
-
isIdentity
default boolean isIdentity()
Returns true if this is an identitySerializer.
-
-