Module org.glavo.classfile
Package org.glavo.classfile.attribute
Interface AnnotationDefaultAttribute
- All Superinterfaces:
Attribute<AnnotationDefaultAttribute>,ClassfileElement,MethodElement,WritableElement<AnnotationDefaultAttribute>
- All Known Implementing Classes:
BoundAttribute.BoundAnnotationDefaultAttr,UnboundAttribute.UnboundAnnotationDefaultAttribute
public sealed interface AnnotationDefaultAttribute
extends Attribute<AnnotationDefaultAttribute>, MethodElement
permits 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 Summary
Modifier and TypeMethodDescriptionReturns the default value of the annotation type element represented by this method.static AnnotationDefaultAttributeof(AnnotationValue annotationDefault) Returns anAnnotationDefaultattribute.Methods inherited from interface org.glavo.classfile.Attribute
attributeMapper, attributeNameMethods inherited from interface org.glavo.classfile.WritableElement
writeTo
-
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
Returns anAnnotationDefaultattribute.- Parameters:
annotationDefault- the default value of the annotation type element- Returns:
- an
AnnotationDefaultattribute
-