public final class SerializerFactoryImpl extends Object implements SerializerFactory
SerializerFactory.| Constructor and Description |
|---|
SerializerFactoryImpl(com.google.common.collect.ImmutableList<SerializerExtension> extensions,
ProcessingEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
Serializer |
getSerializer(TypeMirror typeMirror)
Returns a
Serializer for the given TypeMirror. |
com.squareup.javapoet.CodeBlock |
newIdentifier(String prefix)
Returns an identifier beginning with the given prefix and that is distinct from any identifier
returned by another call to this method.
|
public SerializerFactoryImpl(com.google.common.collect.ImmutableList<SerializerExtension> extensions, ProcessingEnvironment env)
public Serializer getSerializer(TypeMirror typeMirror)
SerializerFactorySerializer for the given TypeMirror.getSerializer in interface SerializerFactorypublic com.squareup.javapoet.CodeBlock newIdentifier(String prefix)
SerializerFactory$,
which should also mean it is distinct from identifiers in user code that are in scope.
The default implementation of this method throws UnsupportedOperationException for
compatibility reasons.
newIdentifier in interface SerializerFactoryCopyright © 2022 Google LLC. All rights reserved.