Interface AnnotationDefaultAttribute

All Superinterfaces:
Attribute<AnnotationDefaultAttribute>, ClassfileElement, MethodElement, WritableElement<AnnotationDefaultAttribute>
All Known Implementing Classes:
BoundAttribute.BoundAnnotationDefaultAttr, UnboundAttribute.UnboundAnnotationDefaultAttribute

Models the AnnotationDefault attribute , which can appear on methods of annotation types, and records the default value for the element corresponding to this method. Delivered as a MethodElement when traversing the elements of a MethodModel.
  • Method Details

    • defaultValue

      AnnotationValue defaultValue()
      Returns the default value of the annotation type element represented by this method.
      Returns:
      the default value of the annotation type element represented by this method
    • of

      static AnnotationDefaultAttribute of(AnnotationValue annotationDefault)
      Returns an AnnotationDefault attribute.
      Parameters:
      annotationDefault - the default value of the annotation type element
      Returns:
      an AnnotationDefault attribute