public abstract class Property
extends java.lang.Object
Datatype.| Modifier and Type | Class and Description |
|---|---|
static class |
Property.Builder
Builder for
Property. |
| Constructor and Description |
|---|
Property() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableList<Excerpt> |
getAccessorAnnotations()
Returns a list of annotations that should be applied to the accessor methods of this
property; that is, the getter method, and a single setter method that will accept the result
of the getter method as its argument.
|
abstract java.lang.String |
getAllCapsName()
Returns the name of the property in all-caps with underscores, e.g.
|
abstract java.util.Optional<javax.lang.model.type.TypeMirror> |
getBoxedType()
Returns the boxed form of
getType(), or null if type is not primitive. |
abstract java.lang.String |
getCapitalizedName()
Returns the capitalized name of the property, e.g.
|
FieldAccess |
getField()
Returns the field name that stores the property, e.g.
|
abstract java.lang.String |
getGetterName()
Returns the name of the getter for the property, e.g.
|
abstract java.lang.String |
getName()
Returns the name of the property, e.g.
|
abstract javax.lang.model.type.TypeMirror |
getType()
Returns the type of the property.
|
abstract boolean |
isFullyCheckedCast()
Returns true if a cast to this property type is guaranteed to be fully checked at runtime.
|
abstract boolean |
isUsingBeanConvention()
Returns true if getters start with "get"; setters should follow suit with "set".
|
Property.Builder |
toBuilder() |
public abstract javax.lang.model.type.TypeMirror getType()
public abstract java.util.Optional<javax.lang.model.type.TypeMirror> getBoxedType()
getType(), or null if type is not primitive.public abstract java.lang.String getName()
public FieldAccess getField()
public abstract java.lang.String getCapitalizedName()
public abstract java.lang.String getAllCapsName()
public abstract boolean isUsingBeanConvention()
public abstract java.lang.String getGetterName()
public abstract boolean isFullyCheckedCast()
Integer, List or Map<?, ?>.public abstract com.google.common.collect.ImmutableList<Excerpt> getAccessorAnnotations()
public Property.Builder toBuilder()