Class Property_Builder.Partial

    • 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