Top Description Methods
org.jboss.jandex

public Interface Declaration

extends AnnotationTarget
Known Direct Implementers
org.jboss.jandex.FieldInfo, org.jboss.jandex.MethodInfo, org.jboss.jandex.MethodParameterInfo, org.jboss.jandex.RecordComponentInfo, org.jboss.jandex.ClassInfo

An AnnotationTarget that is also a declaration.
Since
3.1.0
See Also
ClassInfo, FieldInfo, MethodInfo, MethodParameterInfo, RecordComponentInfo

Method Summary

Modifier and TypeMethod and Description
public default Declaration
asDeclaration()

Implements org.jboss.jandex.AnnotationTarget.asDeclaration.

Casts and returns this annotation target as a Declaration if it is a declaration.
public default boolean
isDeclaration()

Implements org.jboss.jandex.AnnotationTarget.isDeclaration.

Returns whether this annotation target is a declaration.
Inherited from org.jboss.jandex.AnnotationTarget:
annotationannotationannotationannotationsannotationsannotationsannotationsannotationsWithRepeatableannotationsWithRepeatableannotationsWithRepeatableasClassasFieldasMethodasMethodParameterasRecordComponentasTypedeclaredAnnotationdeclaredAnnotationdeclaredAnnotationdeclaredAnnotationsdeclaredAnnotationsWithRepeatabledeclaredAnnotationsWithRepeatabledeclaredAnnotationsWithRepeatablehasAnnotationhasAnnotationhasAnnotationhasDeclaredAnnotationhasDeclaredAnnotationhasDeclaredAnnotationkind

Method Detail

asDeclarationback to summary
public default Declaration asDeclaration()

Implements org.jboss.jandex.AnnotationTarget.asDeclaration.

Doc from org.jboss.jandex.AnnotationTarget.asDeclaration.

Casts and returns this annotation target as a Declaration if it is a declaration.

Returns:Declaration

this instance cast to a declaration

Annotations
@Override
isDeclarationback to summary
public default boolean isDeclaration()

Implements org.jboss.jandex.AnnotationTarget.isDeclaration.

Doc from org.jboss.jandex.AnnotationTarget.isDeclaration.

Returns whether this annotation target is a declaration.

Returns:boolean

whether this annotation target is a declaration

Annotations
@Override