Package org.jboss.jandex
Class AnnotationTransformation.RecordComponentBuilder
- java.lang.Object
-
- org.jboss.jandex.AnnotationTransformation.Builder<AnnotationTransformation.RecordComponentBuilder>
-
- org.jboss.jandex.AnnotationTransformation.RecordComponentBuilder
-
- Enclosing interface:
- AnnotationTransformation
public static class AnnotationTransformation.RecordComponentBuilder extends AnnotationTransformation.Builder<AnnotationTransformation.RecordComponentBuilder>
A builder of annotation transformations for record components.
-
-
Constructor Summary
Constructors Constructor Description RecordComponentBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationTransformation.RecordComponentBuilder
whenRecordComponent(java.lang.Class<?> clazz, java.lang.String name)
Adds a predicate that tests whether the current record component has givenname
and is declared on givenclazz
.AnnotationTransformation.RecordComponentBuilder
whenRecordComponent(java.util.function.Predicate<RecordComponentInfo> predicate)
Adds a predicate that tests whether the current record component matches givenpredicate
.AnnotationTransformation.RecordComponentBuilder
whenRecordComponent(DotName clazz, java.lang.String name)
Adds a predicate that tests whether the current record component 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
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(java.lang.Class<?> clazz, java.lang.String name)
Adds a predicate that tests whether the current record component has givenname
and is declared on givenclazz
.- Parameters:
clazz
- the class, must not benull
name
- the record component name, must not benull
- Returns:
- this builder
- See Also:
AnnotationTransformation.Builder.when(Predicate)
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(DotName clazz, java.lang.String name)
Adds a predicate that tests whether the current record component has givenname
and is declared on givenclazz
.- Parameters:
clazz
- the class name, must not benull
name
- the record component name, must not benull
- Returns:
- this builder
- See Also:
AnnotationTransformation.Builder.when(Predicate)
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(java.util.function.Predicate<RecordComponentInfo> predicate)
Adds a predicate that tests whether the current record component matches givenpredicate
.- Parameters:
predicate
- the predicate, must not benull
- Returns:
- this builder
- See Also:
AnnotationTransformation.Builder.when(Predicate)
-
-