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.
-
-
Constructor Summary
Constructors Constructor Description MethodParameterBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationTransformation.MethodParameterBuilder
whenMethodParameter(java.lang.Class<?> clazz, java.lang.String name)
Adds a predicate that tests whether the current method parameter belongs to a method with givenname
declared on givenclazz
.AnnotationTransformation.MethodParameterBuilder
whenMethodParameter(java.util.function.Predicate<MethodParameterInfo> predicate)
Adds a predicate that tests whether the current method parameter matches givenpredicate
.AnnotationTransformation.MethodParameterBuilder
whenMethodParameter(DotName clazz, java.lang.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
-
-
-
-
Method Detail
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(java.lang.Class<?> clazz, java.lang.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:
AnnotationTransformation.Builder.when(Predicate)
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(DotName clazz, java.lang.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:
AnnotationTransformation.Builder.when(Predicate)
-
whenMethodParameter
public AnnotationTransformation.MethodParameterBuilder whenMethodParameter(java.util.function.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:
AnnotationTransformation.Builder.when(Predicate)
-
-