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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.inferred.freebuilder.processor.property.Property
Property.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList<Excerpt> private final Stringprivate final TypeMirrorprivate final Stringprivate final booleanprivate final com.google.common.collect.ImmutableList<Excerpt> private final Stringprivate final booleanprivate final booleanprivate final Stringprivate final com.google.common.collect.ImmutableList<Excerpt> private final TypeMirrorprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.common.collect.ImmutableList<Excerpt> 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.Returns the name of the property in all-caps with underscores, e.g.Returns the boxed form ofProperty.getType(), or null if type is not primitive.Returns the capitalized name of the property, e.g.com.google.common.collect.ImmutableList<Excerpt> Returns a list of annotations that should be applied to the getter method of this property.Returns the name of the getter for the property, e.g.getName()Returns the name of the property, e.g.com.google.common.collect.ImmutableList<Excerpt> Returns a list of annotations that should be applied to the put method of this property.getType()Returns the type of the property.inthashCode()booleanReturns true if a cast to this property type is guaranteed to be fully checked at runtime.booleanReturns true if the field is to be used in equals and hashCode.booleanReturns true if the field is to appear in the toString.booleanReturns true if getters start with "get"; setters should follow suit with "set".toString()
-
Field Details
-
type
-
boxedType
-
name
-
capitalizedName
-
allCapsName
-
usingBeanConvention
private final boolean usingBeanConvention -
inToString
private final boolean inToString -
inEqualsAndHashCode
private final boolean inEqualsAndHashCode -
getterName
-
fullyCheckedCast
private final boolean fullyCheckedCast -
accessorAnnotations
-
getterAnnotations
-
putAnnotations
-
-
Constructor Details
-
Value
-
-
Method Details
-
getType
Description copied from class:PropertyReturns the type of the property. -
getBoxedType
Description copied from class:PropertyReturns the boxed form ofProperty.getType(), or null if type is not primitive.- Specified by:
getBoxedTypein classProperty
-
getName
Description copied from class:PropertyReturns the name of the property, e.g. myProperty. -
getCapitalizedName
Description copied from class:PropertyReturns the capitalized name of the property, e.g. MyProperty.- Specified by:
getCapitalizedNamein classProperty
-
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
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
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
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
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
- Specified by:
toBuilderin classProperty_Builder.Rebuildable
-
equals
-
hashCode
public int hashCode() -
toString
-