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