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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwhenMethod
(Class<?> clazz, String name) Adds a predicate that tests whether the current method has givenname
and 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 givenname
and is declared on givenclazz
.Methods inherited from class org.jboss.jandex.AnnotationTransformation.Builder
priority, self, transform, when, whenAllMatch, whenAllMatch, whenAllMatch, whenAllMatch, whenAnyMatch, whenAnyMatch, whenAnyMatch, whenAnyMatch, whenNoneMatch, whenNoneMatch, whenNoneMatch, whenNoneMatch
-
Constructor Details
-
MethodBuilder
MethodBuilder()
-
-
Method Details
-
whenMethod
Adds a predicate that tests whether the current method has givenname
and is declared on givenclazz
.- Parameters:
clazz
- the class, must not benull
name
- the method name, must not benull
- Returns:
- this builder
- See Also:
-
whenMethod
Adds a predicate that tests whether the current method has givenname
and is declared on givenclazz
.- Parameters:
clazz
- the class name, must not benull
name
- 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:
-