| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Property.Builder
Builder for
Metadata.Property. |
ValueType.FieldReceiver| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<Metadata.Property,PropertyCodeGenerator> |
GET_CODE_GENERATOR |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFields(ValueType.FieldReceiver fields)
Implement this method to report the name and value of each field.
|
String |
getAllCapsName()
Returns the name of the property in all-caps with underscores, e.g.
|
TypeMirror |
getBoxedType()
Returns the boxed form of
getType(), or null if type is not primitive. |
String |
getCapitalizedName()
Returns the capitalized name of the property, e.g.
|
PropertyCodeGenerator |
getCodeGenerator()
Returns the code generator to use for this property, or null if no generator has been picked
(i.e.
|
String |
getGetterName()
Returns the name of the getter for the property, e.g.
|
String |
getName()
Returns the name of the property, e.g.
|
TypeMirror |
getType()
Returns the type of the property.
|
boolean |
isFullyCheckedCast()
Returns true if a cast to this property type is guaranteed to be fully checked at runtime.
|
public static final com.google.common.base.Function<Metadata.Property,PropertyCodeGenerator> GET_CODE_GENERATOR
public TypeMirror getType()
public TypeMirror getBoxedType()
getType(), or null if type is not primitive.public String getName()
public String getCapitalizedName()
public String getAllCapsName()
public String getGetterName()
public PropertyCodeGenerator getCodeGenerator()
PropertyCodeGenerator.Factory.create(org.inferred.freebuilder.processor.PropertyCodeGenerator.Config).public boolean isFullyCheckedCast()
Integer, List or Map<?, ?>.protected void addFields(ValueType.FieldReceiver fields)
ValueTypeCopyright © 2015 Google, Inc.. All rights reserved.