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 boolean
isCastingUnchecked
private AutoValueOrOneOfProcessor.Property
property
-
Constructor Summary
Constructors Constructor Description Property(AutoValueOrOneOfProcessor.Property property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGetter()
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.java.lang.String
getGwtType()
Returns the suffix in serializer method names for values of the given type.java.lang.String
getName()
java.lang.String
getType()
boolean
isCastingUnchecked()
java.lang.String
toString()
-
-
-
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:
toString
in 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()
-
-