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 DeclarationCasts and returns this annotation target as aDeclarationif it is a declaration.default booleanReturns 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:AnnotationTargetReturns whether this annotation target is a declaration.- Specified by:
isDeclarationin interfaceAnnotationTarget- Returns:
- whether this annotation target is a declaration
-
asDeclaration
Description copied from interface:AnnotationTargetCasts and returns this annotation target as aDeclarationif it is a declaration.- Specified by:
asDeclarationin interfaceAnnotationTarget- Returns:
- this instance cast to a declaration
-