Class Property_Builder.Value

    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Value​(Property_Builder builder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(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.String getAllCapsName()
      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 of Property.getType(), or null if type is not primitive.
      java.lang.String getCapitalizedName()
      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.String getGetterName()
      Returns the name of the getter for the property, e.g.
      java.lang.String getName()
      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.TypeMirror getType()
      Returns the type of the property.
      int hashCode()  
      boolean isFullyCheckedCast()
      Returns true if a cast to this property type is guaranteed to be fully checked at runtime.
      boolean isInEqualsAndHashCode()
      Returns true if the field is to be used in equals and hashCode.
      boolean isInToString()
      Returns true if the field is to appear in the toString.
      boolean isUsingBeanConvention()
      Returns true if getters start with "get"; setters should follow suit with "set".
      Property.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class org.inferred.freebuilder.processor.property.Property

        getField
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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
    • Method Detail

      • getType

        public javax.lang.model.type.TypeMirror getType()
        Description copied from class: Property
        Returns the type of the property.
        Specified by:
        getType in class Property
      • getBoxedType

        public java.util.Optional<javax.lang.model.type.TypeMirror> getBoxedType()
        Description copied from class: Property
        Returns the boxed form of Property.getType(), or null if type is not primitive.
        Specified by:
        getBoxedType in class Property
      • getName

        public java.lang.String getName()
        Description copied from class: Property
        Returns the name of the property, e.g. myProperty.
        Specified by:
        getName in class Property
      • getCapitalizedName

        public java.lang.String getCapitalizedName()
        Description copied from class: Property
        Returns the capitalized name of the property, e.g. MyProperty.
        Specified by:
        getCapitalizedName in class Property
      • getAllCapsName

        public java.lang.String getAllCapsName()
        Description copied from class: Property
        Returns the name of the property in all-caps with underscores, e.g. MY_PROPERTY.
        Specified by:
        getAllCapsName in class Property
      • isUsingBeanConvention

        public boolean isUsingBeanConvention()
        Description copied from class: Property
        Returns true if getters start with "get"; setters should follow suit with "set".
        Specified by:
        isUsingBeanConvention in class Property
      • isInToString

        public boolean isInToString()
        Description copied from class: Property
        Returns true if the field is to appear in the toString.
        Specified by:
        isInToString in class Property
      • isInEqualsAndHashCode

        public boolean isInEqualsAndHashCode()
        Description copied from class: Property
        Returns true if the field is to be used in equals and hashCode.
        Specified by:
        isInEqualsAndHashCode in class Property
      • getGetterName

        public java.lang.String getGetterName()
        Description copied from class: Property
        Returns the name of the getter for the property, e.g. getMyProperty, or isSomethingTrue.
        Specified by:
        getGetterName in class Property
      • isFullyCheckedCast

        public boolean isFullyCheckedCast()
        Description copied from class: Property
        Returns 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 as Integer, List or Map<?, ?>.
        Specified by:
        isFullyCheckedCast in class Property
      • getAccessorAnnotations

        public com.google.common.collect.ImmutableList<Excerpt> getAccessorAnnotations()
        Description copied from class: Property
        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. For a list, for example, that would be getX() and addAllX().
        Specified by:
        getAccessorAnnotations in class Property
      • getGetterAnnotations

        public com.google.common.collect.ImmutableList<Excerpt> getGetterAnnotations()
        Description copied from class: Property
        Returns a list of annotations that should be applied to the getter method of this property.
        Specified by:
        getGetterAnnotations in class Property
      • getPutAnnotations

        public com.google.common.collect.ImmutableList<Excerpt> getPutAnnotations()
        Description copied from class: Property
        Returns 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:
        getPutAnnotations in class Property
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object