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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwhenRecordComponent
(Class<?> clazz, String name) Adds a predicate that tests whether the current record component has givenname
and is declared on givenclazz
.whenRecordComponent
(Predicate<RecordComponentInfo> predicate) Adds a predicate that tests whether the current record component matches givenpredicate
.whenRecordComponent
(DotName clazz, 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
-
Constructor Details
-
RecordComponentBuilder
RecordComponentBuilder()
-
-
Method Details
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(Class<?> clazz, 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:
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(DotName clazz, 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:
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(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:
-