Uses of Interface
org.jboss.jandex.Declaration
Packages that use Declaration
Package
Description
Jandex is a space efficient Java class file indexer and offline reflection library.
-
Uses of Declaration in org.jboss.jandex
Classes in org.jboss.jandex that implement DeclarationModifier and TypeClassDescriptionfinal class
Represents a class entry in an index.final class
Represents a field.final class
Represents a Java method, constructor, or static initializer.final class
Represents an individual Java method parameter that was annotated.final class
Represents an individual Java record component that was annotated.Fields in org.jboss.jandex declared as DeclarationModifier and TypeFieldDescriptionprivate final Declaration
AnnotationOverlayImpl.TransformationContextImpl.declaration
Methods in org.jboss.jandex that return DeclarationModifier and TypeMethodDescriptionAnnotationTarget.asDeclaration()
Casts and returns this annotation target as aDeclaration
if it is a declaration.default Declaration
Declaration.asDeclaration()
TypeTarget.asDeclaration()
AnnotationOverlayImpl.TransformationContextImpl.declaration()
AnnotationTransformation.TransformationContext.declaration()
Returns the declaration that is being transformed.Methods in org.jboss.jandex with parameters of type DeclarationModifier and TypeMethodDescriptionvoid
MutableAnnotationOverlay.addAnnotation
(Declaration declaration, AnnotationInstance annotation) Adds given annotation instance to givendeclaration
.void
MutableAnnotationOverlayImpl.addAnnotation
(Declaration declaration, AnnotationInstance annotation) private AnnotationTransformation
MutableAnnotationOverlayImpl.addTransformation
(Declaration declaration, AnnotationInstance annotation) default AnnotationInstance
AnnotationOverlay.annotation
(Declaration declaration, Class<? extends Annotation> clazz) Returns the annotation instance of givenclazz
declared on givendeclaration
.AnnotationOverlay.annotation
(Declaration declaration, DotName name) Returns the annotation instance with givenname
declared on givendeclaration
.final AnnotationInstance
AnnotationOverlayImpl.annotation
(Declaration declaration, DotName name) AnnotationOverlay.annotations
(Declaration declaration) Returns the annotation instances declared on givendeclaration
.final Collection
<AnnotationInstance> AnnotationOverlayImpl.annotations
(Declaration declaration) default Collection
<AnnotationInstance> AnnotationOverlay.annotationsWithRepeatable
(Declaration declaration, Class<? extends Annotation> clazz) Returns the annotation instances of given type (clazz
) declared on givendeclaration
.AnnotationOverlay.annotationsWithRepeatable
(Declaration declaration, DotName name) Returns the annotation instances with givenname
declared on givendeclaration
.final Collection
<AnnotationInstance> AnnotationOverlayImpl.annotationsWithRepeatable
(Declaration declaration, DotName name) (package private) Collection
<AnnotationInstance> AnnotationOverlayImpl.getAnnotationsFor
(Declaration declaration) (package private) Collection
<AnnotationInstance> MutableAnnotationOverlayImpl.getAnnotationsFor
(Declaration declaration) (package private) final Collection
<AnnotationInstance> AnnotationOverlayImpl.getOriginalAnnotations
(Declaration declaration) default boolean
AnnotationOverlay.hasAnnotation
(Declaration declaration, Class<? extends Annotation> clazz) Returns whether an annotation instance of givenclazz
is declared on givendeclaration
.boolean
AnnotationOverlay.hasAnnotation
(Declaration declaration, DotName name) Returns whether an annotation instance with givenname
is declared on givendeclaration
.final boolean
AnnotationOverlayImpl.hasAnnotation
(Declaration declaration, DotName name) default boolean
AnnotationOverlay.hasAnyAnnotation
(Declaration declaration, Class<? extends Annotation>... classes) Returns whether any annotation instance of one of givenclasses
is declared on givendeclaration
.boolean
AnnotationOverlay.hasAnyAnnotation
(Declaration declaration, Set<DotName> names) Returns whether any annotation instance with one of givennames
is declared on givendeclaration
.final boolean
AnnotationOverlayImpl.hasAnyAnnotation
(Declaration declaration, Set<DotName> names) EquivalenceKey.of
(Declaration declaration) Returns an equivalence key for given declaration.void
MutableAnnotationOverlay.removeAnnotations
(Declaration declaration, Predicate<AnnotationInstance> predicate) Removes all annotations matching givenpredicate
from givendeclaration
.void
MutableAnnotationOverlayImpl.removeAnnotations
(Declaration declaration, Predicate<AnnotationInstance> predicate) private AnnotationTransformation
MutableAnnotationOverlayImpl.removeTransformation
(Declaration declaration, Predicate<AnnotationInstance> predicate) Method parameters in org.jboss.jandex with type arguments of type DeclarationModifier and TypeMethodDescriptionAnnotationTransformation.DeclarationBuilder.whenDeclaration
(Predicate<Declaration> predicate) Adds a predicate that tests whether the current declaration matches givenpredicate
.Constructors in org.jboss.jandex with parameters of type DeclarationModifierConstructorDescription(package private)
TransformationContextImpl
(Declaration declaration, Collection<AnnotationInstance> annotations)