Package org.jboss.jandex
Interface Declaration
-
- All Superinterfaces:
AnnotationTarget
- All Known Implementing Classes:
ClassInfo,FieldInfo,MethodInfo,MethodParameterInfo,RecordComponentInfo
public interface Declaration extends AnnotationTarget
AnAnnotationTargetthat is also a declaration.- Since:
- 3.1.0
- See Also:
ClassInfo,FieldInfo,MethodInfo,MethodParameterInfo,RecordComponentInfo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jandex.AnnotationTarget
AnnotationTarget.Kind
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default DeclarationasDeclaration()Casts and returns this annotation target as aDeclarationif it is a declaration.default booleanisDeclaration()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 Detail
-
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
default 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
-
-