Package com.google.auto.value.processor
Class GwtSerialization.Property
- java.lang.Object
-
- com.google.auto.value.processor.GwtSerialization.Property
-
- Enclosing class:
- GwtSerialization
public static class GwtSerialization.Property extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisCastingUncheckedprivate AutoValueOrOneOfProcessor.Propertyproperty
-
Constructor Summary
Constructors Constructor Description Property(AutoValueOrOneOfProcessor.Property property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetGetter()java.lang.StringgetGwtCast()Returns a string to be inserted before the call to the readFoo() call so that the expression can be assigned to the given type.java.lang.StringgetGwtType()Returns the suffix in serializer method names for values of the given type.java.lang.StringgetName()java.lang.StringgetType()booleanisCastingUnchecked()java.lang.StringtoString()
-
-
-
Field Detail
-
property
private final AutoValueOrOneOfProcessor.Property property
-
isCastingUnchecked
private final boolean isCastingUnchecked
-
-
Constructor Detail
-
Property
Property(AutoValueOrOneOfProcessor.Property property)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getGetter
public java.lang.String getGetter()
-
getType
public java.lang.String getType()
-
getName
public java.lang.String getName()
-
getGwtType
public java.lang.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.
-
getGwtCast
public java.lang.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) ".
-
isCastingUnchecked
public boolean isCastingUnchecked()
-
-