Package org.jboss.jandex
Class AnnotationTransformation.DeclarationBuilder
java.lang.Object
org.jboss.jandex.AnnotationTransformation.Builder<AnnotationTransformation.DeclarationBuilder>
org.jboss.jandex.AnnotationTransformation.DeclarationBuilder
- Enclosing interface:
- AnnotationTransformation
public static class AnnotationTransformation.DeclarationBuilder
extends AnnotationTransformation.Builder<AnnotationTransformation.DeclarationBuilder>
A builder of annotation transformations for arbitrary declarations.
-
Method Summary
Modifier and TypeMethodDescriptionwhenDeclaration(Predicate<Declaration> predicate) Adds a predicate that tests whether the current declaration matches givenpredicate.Methods inherited from class org.jboss.jandex.AnnotationTransformation.Builder
priority, transform, when, whenAllMatch, whenAllMatch, whenAllMatch, whenAllMatch, whenAnyMatch, whenAnyMatch, whenAnyMatch, whenAnyMatch, whenNoneMatch, whenNoneMatch, whenNoneMatch, whenNoneMatch
-
Method Details
-
whenDeclaration
public AnnotationTransformation.DeclarationBuilder whenDeclaration(Predicate<Declaration> predicate) Adds a predicate that tests whether the current declaration matches givenpredicate.- Parameters:
predicate- the predicate, must not benull- Returns:
- this builder
- See Also:
-