public static class AutoParcelProcessor.Property
extends java.lang.Object
@AutoParcelGson class, defined by one of its abstract methods.
An instance of this class is made available to the Velocity template engine for
each property. The public methods of this class define JavaBeans-style properties
that are accessible from templates. For example getType() means we can
write $p.type for a Velocity variable $p that is a Property.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccess() |
java.util.List<java.lang.String> |
getAnnotations() |
java.lang.String |
getCastType() |
java.util.List<java.lang.String> |
getFieldAnnotations() |
java.lang.String |
getGetter()
Returns the name of the getter method for this property as defined by the
@AutoParcelGson
class. |
javax.lang.model.type.TypeKind |
getKind() |
java.lang.String |
getName()
Returns the name of the property as it should be used in strings visible to users.
|
java.lang.String |
getType() |
boolean |
isNullable() |
boolean |
primitive() |
java.lang.String |
toString()
Returns the name of the property as it should be used when declaring identifiers (fields and
parameters).
|
public java.lang.String toString()
foo() then this will be foo.
If it was getFoo() then it will be foo. If it was getPackage() then
it will be something like package0, since package is a reserved word.toString in class java.lang.Objectpublic java.lang.String getName()
toString(), except that if we had to use an identifier like
"package0" because "package" is a reserved word, the name here will be the original
"package".public java.lang.String getGetter()
@AutoParcelGson
class. For property foo, this will be foo or getFoo or isFoo.public java.lang.String getType()
public javax.lang.model.type.TypeKind getKind()
public java.lang.String getCastType()
public boolean primitive()
public java.util.List<java.lang.String> getAnnotations()
public java.util.List<java.lang.String> getFieldAnnotations()
public boolean isNullable()
public java.lang.String getAccess()