Package com.google.auto.value.processor
Class GwtSerialization.Property
java.lang.Object
com.google.auto.value.processor.GwtSerialization.Property
- Enclosing class:
- GwtSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final AutoValueOrOneOfProcessor.Property
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
property
-
isCastingUnchecked
private final boolean isCastingUnchecked
-
-
Constructor Details
-
Property
Property(AutoValueOrOneOfProcessor.Property property)
-
-
Method Details
-
toString
-
getGetter
-
getType
-
getName
-
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. -
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) ". -
isCastingUnchecked
public boolean isCastingUnchecked()
-