Class Annotation.BuilderBase.AnnotationImpl

java.lang.Object
io.helidon.common.types.Annotation.BuilderBase.AnnotationImpl
All Implemented Interfaces:
Prototype.Api, Annotation, Comparable<Annotation>
Direct Known Subclasses:
Qualifier.BuilderBase.QualifierImpl
Enclosing class:
Annotation.BuilderBase<BUILDER extends Annotation.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Annotation>

protected static class Annotation.BuilderBase.AnnotationImpl extends Object implements Annotation
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Field Details

  • Constructor Details

    • AnnotationImpl

      protected AnnotationImpl(Annotation.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • typeName

      public TypeName typeName()
      Description copied from interface: Annotation
      The type name, e.g., Objects -> "java.util.Objects".
      Specified by:
      typeName in interface Annotation
      Returns:
      the annotation type name
    • values

      @Deprecated(since="4.3.0", forRemoval=true) public Map<String,Object> values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Annotation
      Key-value map of all the annotation properties.
      Specified by:
      values in interface Annotation
      Returns:
      key-value pairs of all the properties present
    • properties

      public Map<String,AnnotationProperty> properties()
      Description copied from interface: Annotation
      Properties defined on this annotation.
      Specified by:
      properties in interface Annotation
      Returns:
      properties
    • metaAnnotations

      public List<Annotation> metaAnnotations()
      Description copied from interface: Annotation
      A list of inherited annotations (from the whole hierarchy).
      Specified by:
      metaAnnotations in interface Annotation
      Returns:
      list of all annotations declared on the annotation type, or inherited from them
    • originatingElement

      public Optional<Object> originatingElement()
      Description copied from interface: Annotation
      The element used to create this instance. The type of the object depends on the environment.
      Specified by:
      originatingElement in interface Annotation
      Returns:
      originating element
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object