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.
-
Method Summary
Modifier and TypeMethodDescriptionwhenMethodParameter(Class<?> clazz, String name) Adds a predicate that tests whether the current method parameter belongs to a method with givennamedeclared 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 givennamedeclared 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
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(Class<?> clazz, String name) Adds a predicate that tests whether the current method parameter belongs to a method with givennamedeclared on givenclazz.- Parameters:
clazz- the class, must not benullname- 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 givennamedeclared on givenclazz.- Parameters:
clazz- the class name, must not benullname- 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:
-