Class JavaFieldPredicates
- java.lang.Object
-
- org.apache.flink.architecture.common.JavaFieldPredicates
-
public class JavaFieldPredicates extends Object
Fine-grained predicates focus on the JavaField.
-
-
Constructor Summary
Constructors Constructor Description JavaFieldPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>annotatedWith(Class<? extends Annotation> annotationType)Match the single Annotation of theJavaField.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>isAssignableTo(Class<?> clazz)Match theClassof theJavaField's assignability.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>isFinal()Match the final modifier of theJavaField.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>isNotStatic()Match none static modifier of theJavaField.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>isPublic()Match the public modifier of theJavaField.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>isStatic()Match the static modifier of theJavaField.static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField>ofType(Class<?> clazz)Match theClassof theJavaField.
-
-
-
Method Detail
-
isPublic
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> isPublic()
Match the public modifier of theJavaField.- Returns:
- A
DescribedPredicatereturning true, if and only if the testedJavaFieldhas the public modifier.
-
isStatic
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> isStatic()
Match the static modifier of theJavaField.- Returns:
- A
DescribedPredicatereturning true, if and only if the testedJavaFieldhas the static modifier.
-
isNotStatic
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> isNotStatic()
Match none static modifier of theJavaField.- Returns:
- A
DescribedPredicatereturning true, if and only if the testedJavaFieldhas no static modifier.
-
isFinal
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> isFinal()
Match the final modifier of theJavaField.- Returns:
- A
DescribedPredicatereturning true, if and only if the testedJavaFieldhas the final modifier.
-
ofType
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> ofType(Class<?> clazz)
Match theClassof theJavaField.- Returns:
- A
DescribedPredicatereturning true, if and only if the testedJavaFieldhas the same type of the givenclazz.
-
isAssignableTo
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> isAssignableTo(Class<?> clazz)
Match theClassof theJavaField's assignability.- Parameters:
clazz- the Class type to check for assignability- Returns:
- a
DescribedPredicatethat returnstrue, if the respectiveJavaFieldis assignable to the suppliedclazz.
-
annotatedWith
public static com.tngtech.archunit.base.DescribedPredicate<com.tngtech.archunit.core.domain.JavaField> annotatedWith(Class<? extends Annotation> annotationType)
Match the single Annotation of theJavaField.- Returns:
- A
DescribedPredicatereturning true, if and only if the testedJavaFieldhas exactly the given AnnotationannotationType.
-
-