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.
-
-
Constructor Summary
Constructors Constructor Description MethodBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationTransformation.MethodBuilder
whenMethod(java.lang.Class<?> clazz, java.lang.String name)
Adds a predicate that tests whether the current method has givenname
and is declared on givenclazz
.AnnotationTransformation.MethodBuilder
whenMethod(java.util.function.Predicate<MethodInfo> predicate)
Adds a predicate that tests whether the current method matches givenpredicate
.AnnotationTransformation.MethodBuilder
whenMethod(DotName clazz, java.lang.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
-
-
-
-
Method Detail
-
whenMethod
public AnnotationTransformation.MethodBuilder whenMethod(java.lang.Class<?> clazz, java.lang.String name)
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:
AnnotationTransformation.Builder.when(Predicate)
-
whenMethod
public AnnotationTransformation.MethodBuilder whenMethod(DotName clazz, java.lang.String name)
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:
AnnotationTransformation.Builder.when(Predicate)
-
whenMethod
public AnnotationTransformation.MethodBuilder whenMethod(java.util.function.Predicate<MethodInfo> predicate)
Adds a predicate that tests whether the current method matches givenpredicate
.- Parameters:
predicate
- the predicate, must not benull
- Returns:
- this builder
- See Also:
AnnotationTransformation.Builder.when(Predicate)
-
-