Class GwtSerialization.Property

java.lang.Object
com.google.auto.value.processor.GwtSerialization.Property
Enclosing class:
GwtSerialization

public static class GwtSerialization.Property extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getGetter

      public String getGetter()
    • getType

      public String getType()
    • getName

      public String getName()
    • getGwtType

      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.
    • getGwtCast

      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) ".
    • isCastingUnchecked

      public boolean isCastingUnchecked()