Class Property_Builder.Value
- java.lang.Object
-
- org.inferred.freebuilder.processor.property.Property
-
- org.inferred.freebuilder.processor.property.Property_Builder.Rebuildable
-
- org.inferred.freebuilder.processor.property.Property_Builder.Value
-
- Enclosing class:
- Property_Builder
private static final class Property_Builder.Value extends Property_Builder.Rebuildable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.inferred.freebuilder.processor.property.Property
Property.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<Excerpt>accessorAnnotationsprivate java.lang.StringallCapsNameprivate javax.lang.model.type.TypeMirrorboxedTypeprivate java.lang.StringcapitalizedNameprivate booleanfullyCheckedCastprivate com.google.common.collect.ImmutableList<Excerpt>getterAnnotationsprivate java.lang.StringgetterNameprivate booleaninEqualsAndHashCodeprivate booleaninToStringprivate java.lang.Stringnameprivate com.google.common.collect.ImmutableList<Excerpt>putAnnotationsprivate javax.lang.model.type.TypeMirrortypeprivate booleanusingBeanConvention
-
Constructor Summary
Constructors Modifier Constructor Description privateValue(Property_Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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.java.lang.StringgetAllCapsName()Returns the name of the property in all-caps with underscores, e.g.java.util.Optional<javax.lang.model.type.TypeMirror>getBoxedType()Returns the boxed form ofProperty.getType(), or null if type is not primitive.java.lang.StringgetCapitalizedName()Returns the capitalized name of the property, e.g.com.google.common.collect.ImmutableList<Excerpt>getGetterAnnotations()Returns a list of annotations that should be applied to the getter method of this property.java.lang.StringgetGetterName()Returns the name of the getter for the property, e.g.java.lang.StringgetName()Returns the name of the property, e.g.com.google.common.collect.ImmutableList<Excerpt>getPutAnnotations()Returns a list of annotations that should be applied to the put method of this property.javax.lang.model.type.TypeMirrorgetType()Returns the type of the property.inthashCode()booleanisFullyCheckedCast()Returns true if a cast to this property type is guaranteed to be fully checked at runtime.booleanisInEqualsAndHashCode()Returns true if the field is to be used in equals and hashCode.booleanisInToString()Returns true if the field is to appear in the toString.booleanisUsingBeanConvention()Returns true if getters start with "get"; setters should follow suit with "set".Property.BuildertoBuilder()java.lang.StringtoString()
-
-
-
Field Detail
-
type
private final javax.lang.model.type.TypeMirror type
-
boxedType
private final javax.lang.model.type.TypeMirror boxedType
-
name
private final java.lang.String name
-
capitalizedName
private final java.lang.String capitalizedName
-
allCapsName
private final java.lang.String allCapsName
-
usingBeanConvention
private final boolean usingBeanConvention
-
inToString
private final boolean inToString
-
inEqualsAndHashCode
private final boolean inEqualsAndHashCode
-
getterName
private final java.lang.String getterName
-
fullyCheckedCast
private final boolean fullyCheckedCast
-
accessorAnnotations
private final com.google.common.collect.ImmutableList<Excerpt> accessorAnnotations
-
getterAnnotations
private final com.google.common.collect.ImmutableList<Excerpt> getterAnnotations
-
putAnnotations
private final com.google.common.collect.ImmutableList<Excerpt> putAnnotations
-
-
Constructor Detail
-
Value
private Value(Property_Builder builder)
-
-
Method Detail
-
getType
public javax.lang.model.type.TypeMirror getType()
Description copied from class:PropertyReturns the type of the property.
-
getBoxedType
public java.util.Optional<javax.lang.model.type.TypeMirror> getBoxedType()
Description copied from class:PropertyReturns the boxed form ofProperty.getType(), or null if type is not primitive.- Specified by:
getBoxedTypein classProperty
-
getName
public java.lang.String getName()
Description copied from class:PropertyReturns the name of the property, e.g. myProperty.
-
getCapitalizedName
public java.lang.String getCapitalizedName()
Description copied from class:PropertyReturns the capitalized name of the property, e.g. MyProperty.- Specified by:
getCapitalizedNamein classProperty
-
getAllCapsName
public java.lang.String getAllCapsName()
Description copied from class:PropertyReturns the name of the property in all-caps with underscores, e.g. MY_PROPERTY.- Specified by:
getAllCapsNamein classProperty
-
isUsingBeanConvention
public boolean isUsingBeanConvention()
Description copied from class:PropertyReturns true if getters start with "get"; setters should follow suit with "set".- Specified by:
isUsingBeanConventionin classProperty
-
isInToString
public boolean isInToString()
Description copied from class:PropertyReturns true if the field is to appear in the toString.- Specified by:
isInToStringin classProperty
-
isInEqualsAndHashCode
public boolean isInEqualsAndHashCode()
Description copied from class:PropertyReturns true if the field is to be used in equals and hashCode.- Specified by:
isInEqualsAndHashCodein classProperty
-
getGetterName
public java.lang.String getGetterName()
Description copied from class:PropertyReturns the name of the getter for the property, e.g. getMyProperty, or isSomethingTrue.- Specified by:
getGetterNamein classProperty
-
isFullyCheckedCast
public boolean isFullyCheckedCast()
Description copied from class:PropertyReturns true if a cast to this property type is guaranteed to be fully checked at runtime. This is true for any type that is non-generic, raw, or parameterized with unbounded wildcards, such asInteger,ListorMap<?, ?>.- Specified by:
isFullyCheckedCastin classProperty
-
getAccessorAnnotations
public com.google.common.collect.ImmutableList<Excerpt> getAccessorAnnotations()
Description copied from class:PropertyReturns 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. For a list, for example, that would be getX() and addAllX().- Specified by:
getAccessorAnnotationsin classProperty
-
getGetterAnnotations
public com.google.common.collect.ImmutableList<Excerpt> getGetterAnnotations()
Description copied from class:PropertyReturns a list of annotations that should be applied to the getter method of this property.- Specified by:
getGetterAnnotationsin classProperty
-
getPutAnnotations
public com.google.common.collect.ImmutableList<Excerpt> getPutAnnotations()
Description copied from class:PropertyReturns a list of annotations that should be applied to the put method of this property. This only applies to map properties. Annotation will be added to put(key, value) method.- Specified by:
getPutAnnotationsin classProperty
-
toBuilder
public Property.Builder toBuilder()
- Specified by:
toBuilderin classProperty_Builder.Rebuildable
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-