Class Property_Builder.Value

Enclosing class:
Property_Builder

private static final class Property_Builder.Value extends Property_Builder.Rebuildable
  • Field Details

    • type

      private final TypeMirror type
    • boxedType

      private final TypeMirror boxedType
    • name

      private final String name
    • capitalizedName

      private final String capitalizedName
    • allCapsName

      private final String allCapsName
    • usingBeanConvention

      private final boolean usingBeanConvention
    • inToString

      private final boolean inToString
    • inEqualsAndHashCode

      private final boolean inEqualsAndHashCode
    • getterName

      private final 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 Details

  • Method Details

    • getType

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

      public Optional<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 String getName()
      Description copied from class: Property
      Returns the name of the property, e.g. myProperty.
      Specified by:
      getName in class Property
    • getCapitalizedName

      public 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 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 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
    • toBuilder

      public Property.Builder toBuilder()
      Specified by:
      toBuilder in class Property_Builder.Rebuildable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object