Package org.jboss.jandex
Class AnnotationTransformation.MethodParameterBuilder
java.lang.Object
org.jboss.jandex.AnnotationTransformation.Builder<AnnotationTransformation.MethodParameterBuilder>
org.jboss.jandex.AnnotationTransformation.MethodParameterBuilder
- Enclosing interface:
AnnotationTransformation
public static class AnnotationTransformation.MethodParameterBuilder
extends AnnotationTransformation.Builder<AnnotationTransformation.MethodParameterBuilder>
A builder of annotation transformations for method parameters.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwhenMethodParameter
(Class<?> clazz, String name) Adds a predicate that tests whether the current method parameter belongs to a method with givenname
declared on givenclazz
.whenMethodParameter
(Predicate<MethodParameterInfo> predicate) Adds a predicate that tests whether the current method parameter matches givenpredicate
.whenMethodParameter
(DotName clazz, String name) Adds a predicate that tests whether the current method parameter belongs to a method with givenname
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
-
MethodParameterBuilder
MethodParameterBuilder()
-
-
Method Details
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(Class<?> clazz, String name) Adds a predicate that tests whether the current method parameter belongs to a method with givenname
declared on givenclazz
.- Parameters:
clazz
- the class, must not benull
name
- the method name, must not benull
- Returns:
- this builder
- See Also:
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(DotName clazz, String name) Adds a predicate that tests whether the current method parameter belongs to a method with givenname
declared on givenclazz
.- Parameters:
clazz
- the class name, must not benull
name
- the method name, must not benull
- Returns:
- this builder
- See Also:
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(Predicate<MethodParameterInfo> predicate) Adds a predicate that tests whether the current method parameter matches givenpredicate
.- Parameters:
predicate
- the predicate, must not benull
- Returns:
- this builder
- See Also:
-