Package org.jboss.jandex
Class AnnotationTransformation.MethodBuilder
java.lang.Object
org.jboss.jandex.AnnotationTransformation.Builder<AnnotationTransformation.MethodBuilder>
org.jboss.jandex.AnnotationTransformation.MethodBuilder
- Enclosing interface:
- AnnotationTransformation
public static class AnnotationTransformation.MethodBuilder
extends AnnotationTransformation.Builder<AnnotationTransformation.MethodBuilder>
A builder of annotation transformations for methods.
-
Method Summary
Modifier and TypeMethodDescriptionwhenMethod(Class<?> clazz, String name) Adds a predicate that tests whether the current method has givennameand is declared on givenclazz.whenMethod(Predicate<MethodInfo> predicate) Adds a predicate that tests whether the current method matches givenpredicate.whenMethod(DotName clazz, String name) Adds a predicate that tests whether the current method has givennameand is declared on givenclazz.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
-
whenMethod
Adds a predicate that tests whether the current method has givennameand is declared on givenclazz.- Parameters:
clazz- the class, must not benullname- the method name, must not benull- Returns:
- this builder
- See Also:
-
whenMethod
Adds a predicate that tests whether the current method has givennameand is declared on givenclazz.- Parameters:
clazz- the class name, must not benullname- the method name, must not benull- Returns:
- this builder
- See Also:
-
whenMethod
Adds a predicate that tests whether the current method matches givenpredicate.- Parameters:
predicate- the predicate, must not benull- Returns:
- this builder
- See Also:
-