Package org.jboss.jandex
Interface Declaration
-
- All Superinterfaces:
AnnotationTarget
- All Known Implementing Classes:
ClassInfo
,FieldInfo
,MethodInfo
,MethodParameterInfo
,RecordComponentInfo
public interface Declaration extends AnnotationTarget
AnAnnotationTarget
that 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 Declaration
asDeclaration()
Casts and returns this annotation target as aDeclaration
if it is a declaration.default boolean
isDeclaration()
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:AnnotationTarget
Returns whether this annotation target is a declaration.- Specified by:
isDeclaration
in interfaceAnnotationTarget
- Returns:
- whether this annotation target is a declaration
-
asDeclaration
default 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
-
-