| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Property.Builder
Builder for
Metadata.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 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.
|
abstract PropertyCodeGenerator |
getCodeGenerator()
Returns the code generator to use for this property, or null if no generator has been picked
(i.e.
|
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".
|
Metadata.Property.Builder |
toBuilder() |
public abstract javax.lang.model.type.TypeMirror getType()
@Nullable public abstract 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()
@Nullable public abstract PropertyCodeGenerator getCodeGenerator()
PropertyCodeGenerator.Factory.create(org.inferred.freebuilder.processor.PropertyCodeGenerator.Config).public abstract boolean isFullyCheckedCast()
Integer, List or Map<?, ?>.public abstract com.google.common.collect.ImmutableList<Excerpt> getAccessorAnnotations()
public Metadata.Property.Builder toBuilder()