Package org.jboss.jandex
Interface Declaration
- All Superinterfaces:
AnnotationTarget
- All Known Implementing Classes:
ClassInfo
,FieldInfo
,MethodInfo
,MethodParameterInfo
,RecordComponentInfo
An
AnnotationTarget
that is also a declaration.- Since:
- 3.1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jandex.AnnotationTarget
AnnotationTarget.Kind
-
Method Summary
Modifier and TypeMethodDescriptiondefault Declaration
Casts and returns this annotation target as aDeclaration
if it is a declaration.default boolean
Returns whether this annotation target is a declaration.Methods inherited from interface org.jboss.jandex.AnnotationTarget
annotation, annotation, annotation, annotations, annotations, annotations, annotations, annotationsWithRepeatable, annotationsWithRepeatable, annotationsWithRepeatable, asClass, asField, asMethod, asMethodParameter, asRecordComponent, asType, declaredAnnotation, declaredAnnotation, declaredAnnotation, declaredAnnotations, declaredAnnotationsWithRepeatable, declaredAnnotationsWithRepeatable, declaredAnnotationsWithRepeatable, hasAnnotation, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, kind
-
Method Details
-
isDeclaration
default boolean isDeclaration()Description copied from interface:AnnotationTarget
Returns whether this annotation target is a declaration.- Specified by:
isDeclaration
in interfaceAnnotationTarget
- Returns:
- whether this annotation target is a declaration
-
asDeclaration
Description copied from interface:AnnotationTarget
Casts and returns this annotation target as aDeclaration
if it is a declaration.- Specified by:
asDeclaration
in interfaceAnnotationTarget
- Returns:
- this instance cast to a declaration
-