@AutoValue classes also marked
@GwtCompatible(serializable = true).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final GwtCompatibility | |
| private final javax. | |
| private final javax. |
| Access | Constructor and Description |
|---|---|
| pack-priv | GwtSerialization(GwtCompatibility gwtCompatibility, javax.
|
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| pack-priv void | maybeWriteGwtSerializer(AutoValueTemplateVars
the template variables defined for this type. autoVars, String the simple name of the AutoValue class being generated, AutoValue_Foo
in the example. finalSubclass)Writes the GWT serializer for the given type, if appropriate. |
| private boolean | |
| private void | writeSourceFile(String className, String text, javax.
|
| gwtCompatibility | back to summary |
|---|---|
| private final GwtCompatibility gwtCompatibility | |
| processingEnv | back to summary |
|---|---|
| private final javax. | |
| type | back to summary |
|---|---|
| private final javax. | |
| GwtSerialization | back to summary |
|---|---|
| pack-priv GwtSerialization(GwtCompatibility gwtCompatibility, javax. | |
| computeClassHash | back to summary |
|---|---|
| private String computeClassHash(Iterable<AutoValueishProcessor. | |
| maybeWriteGwtSerializer | back to summary |
|---|---|
| pack-priv void maybeWriteGwtSerializer(AutoValueTemplateVars autoVars, String finalSubclass) Writes the GWT serializer for the given type, if appropriate. An If the type is com.example.Foo then the generated AutoValue subclass is com.example.AutoValue_Foo and the GWT serializer is com.example.AutoValue_Foo_CustomFieldSerializer.
| |
| shouldWriteGwtSerializer | back to summary |
|---|---|
| private boolean shouldWriteGwtSerializer() | |
| writeSourceFile | back to summary |
|---|---|
| private void writeSourceFile(String className, String text, javax. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | actualTypes
The generic signature used by the generated subclass for its superclass reference. |
| pack-priv ImmutableMap | builderPropertyBuilders
A map from property names to information about the associated property builder. |
| pack-priv Multimap | builderSetters
A multimap from property names (like foo) to the corresponding setter methods (foo or setFoo). |
| pack-priv String | classHashString
A string that should change if any salient details of the serialized class change. |
| pack-priv String | formalTypes
The formal generic signature of the class with the |
| pack-priv String | generated
The encoding of the |
| pack-priv String | pkg
The package of the class with the |
| pack-priv List | props
The properties defined by the parent class's abstract methods. |
| pack-priv String | serializerClass
The simple name of the generated GWT serializer class. |
| pack-priv String | subclass
The simple name of the generated subclass. |
| private static final Template | |
| pack-priv Boolean | useBuilder
True if the |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Template |
| actualTypes | back to summary |
|---|---|
| pack-priv String actualTypes The generic signature used by the generated subclass for its superclass reference. This is
empty, or contains only type variables with no bounds, for example | |
| builderPropertyBuilders | back to summary |
|---|---|
| pack-priv ImmutableMap<String, PropertyBuilderClassifier. A map from property names to information about the associated property builder. A property
called foo (defined by a method foo() or getFoo()) can have a property builder called
fooBuilder(). The type of foo must be a type that has an associated builder following certain
conventions. Guava immutable types such as ImmutableList follow those conventions, as do many
| |
| builderSetters | back to summary |
|---|---|
| pack-priv Multimap<String, BuilderSpec. A multimap from property names (like foo) to the corresponding setter methods (foo or setFoo). | |
| classHashString | back to summary |
|---|---|
| pack-priv String classHashString A string that should change if any salient details of the serialized class change. | |
| formalTypes | back to summary |
|---|---|
| pack-priv String formalTypes The formal generic signature of the class with the | |
| generated | back to summary |
|---|---|
| pack-priv String generated The encoding of the | |
| pkg | back to summary |
|---|---|
| pack-priv String pkg The package of the class with the | |
| props | back to summary |
|---|---|
| pack-priv List<GwtSerialization. The properties defined by the parent class's abstract methods. | |
| serializerClass | back to summary |
|---|---|
| pack-priv String serializerClass The simple name of the generated GWT serializer class. | |
| subclass | back to summary |
|---|---|
| pack-priv String subclass The simple name of the generated subclass. | |
| TEMPLATE | back to summary |
|---|---|
| private static final Template TEMPLATE | |
| useBuilder | back to summary |
|---|---|
| pack-priv Boolean useBuilder True if the | |
| GwtTemplateVars | back to summary |
|---|---|
| pack-priv GwtTemplateVars() | |
| parsedTemplate | back to summary |
|---|---|
| pack-priv Template parsedTemplate() Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final AutoValueishProcessor. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | getGwtCast()
Returns a string to be inserted before the call to the readFoo() call so that the expression can be assigned to the given type. |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public String |
| isCastingUnchecked | back to summary |
|---|---|
| private final boolean isCastingUnchecked | |
| property | back to summary |
|---|---|
| private final AutoValueishProcessor. | |
| Property | back to summary |
|---|---|
| pack-priv Property(AutoValueishProcessor. | |
| getGetter | back to summary |
|---|---|
| public String getGetter() | |
| getGwtCast | back to summary |
|---|---|
| public String getGwtCast() Returns a string to be inserted before the call to the readFoo() call so that the expression can be assigned to the given type. For primitive types and String, the readInt() etc methods already return the right type so the string is empty. For other types, the string is a cast like "(Foo) ". | |
| getGwtType | back to summary |
|---|---|
| public String getGwtType() Returns the suffix in serializer method names for values of the given type. For example, if the type is "int" then the returned value will be "Int" because the serializer methods are called readInt and writeInt. There are methods for all primitive types and String; every other type uses readObject and writeObject. | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getType | back to summary |
|---|---|
| public String getType() | |
| isCastingUnchecked | back to summary |
|---|---|
| public boolean isCastingUnchecked() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |