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.
-
Method Summary
Modifier and TypeMethodDescriptionwhenRecordComponent(Class<?> clazz, String name) Adds a predicate that tests whether the current record component has givennameand 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 givennameand is declared 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
-
whenRecordComponent
public AnnotationTransformation.RecordComponentBuilder whenRecordComponent(Class<?> clazz, String name) Adds a predicate that tests whether the current record component has givennameand is declared on givenclazz.- Parameters:
clazz- the class, must not benullname- 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 givennameand is declared on givenclazz.- Parameters:
clazz- the class name, must not benullname- 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:
-