Top Description Inners Constructors Methods
com.google.auto.value.extension.serializable.serializer.impl

public final Class IdentitySerializerFactory

extends Object
Class Inheritance
Imports
com.google.auto.value.extension.serializable.serializer.interfaces.Serializer, com.squareup.javapoet.CodeBlock, javax.lang.model.type.TypeMirror

Creates identity Serializer instances.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Serializer
getSerializer(javax.lang.model.type.TypeMirror typeMirror)

Returns a Serializer that leaves the type as is.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IdentitySerializerFactoryback to summary
private IdentitySerializerFactory()

Method Detail

getSerializerback to summary
public static Serializer getSerializer(javax.lang.model.type.TypeMirror typeMirror)

Returns a Serializer that leaves the type as is.

com.google.auto.value.extension.serializable.serializer.impl back to summary

private Class IdentitySerializerFactory.IdentitySerializer

extends Object
implements Serializer
Class Inheritance
  • java.lang.Object
  • com.google.auto.value.extension.serializable.serializer.impl.IdentitySerializerFactory.IdentitySerializer
All Implemented Interfaces
com.google.auto.value.extension.serializable.serializer.interfaces.Serializer

Field Summary

Modifier and TypeField and Description
private final javax.lang.model.type.TypeMirror

Constructor Summary

AccessConstructor and Description
pack-priv
IdentitySerializer(javax.lang.model.type.TypeMirror typeMirror)

Method Summary

Modifier and TypeMethod and Description
public CodeBlock
fromProxy(CodeBlock expression)

Implements com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.fromProxy.

Creates an expression that converts the proxy type back to the original type.

public boolean
public javax.lang.model.type.TypeMirror
proxyFieldType()

Implements com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.proxyFieldType.

The proxy type the original unserializable type will be mapped to.

public CodeBlock
toProxy(CodeBlock expression)

Implements com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.toProxy.

Creates an expression that converts the original type to the proxy type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typeMirrorback to summary
private final javax.lang.model.type.TypeMirror typeMirror

Constructor Detail

IdentitySerializerback to summary
pack-priv IdentitySerializer(javax.lang.model.type.TypeMirror typeMirror)

Method Detail

fromProxyback to summary
public CodeBlock fromProxy(CodeBlock expression)

Implements com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.fromProxy.

Doc from com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.fromProxy.

Creates an expression that converts the proxy type back to the original type.

Annotations
@Override
isIdentityback to summary
public boolean isIdentity()

Overrides default com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.isIdentity.

Doc from com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.isIdentity.

Returns true if this is an identity Serializer.

Annotations
@Override
proxyFieldTypeback to summary
public javax.lang.model.type.TypeMirror proxyFieldType()

Implements com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.proxyFieldType.

Doc from com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.proxyFieldType.

The proxy type the original unserializable type will be mapped to.

Annotations
@Override
toProxyback to summary
public CodeBlock toProxy(CodeBlock expression)

Implements com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.toProxy.

Doc from com.google.auto.value.extension.serializable.serializer.interfaces.Serializer.toProxy.

Creates an expression that converts the original type to the proxy type.

Annotations
@Override