Interface GivenClasses
- All Superinterfaces:
GivenObjects<JavaClass>
-
Method Summary
Modifier and TypeMethodDescriptionshould()Allows to specify assertions for the set of classes under consideration.should(ArchCondition<? super JavaClass> condition) Allows to specify assertions for the set of classes under consideration.that()Allows to restrict the set of classes under consideration.that(DescribedPredicate<? super JavaClass> predicate) Allows to restrict the set of classes under consideration.
-
Method Details
-
that
Allows to restrict the set of classes under consideration. E.g.
classes().that().haveSimpleName("Example")- Returns:
- A syntax element, which can be used to restrict the classes under consideration
-
that
@PublicAPI(usage=ACCESS) GivenClassesConjunction that(DescribedPredicate<? super JavaClass> predicate) Allows to restrict the set of classes under consideration. E.g.
Note that many predefinedclasses().that(haveSimpleName("Example"))predicatescan be found within a subclassPredicatesof the respective domain object or a common ancestor. For example,predicatestargetingJavaClasscan be found withinJavaClass.Predicatesor one of the respective ancestors likeHasName.Predicates.- Specified by:
thatin interfaceGivenObjects<JavaClass>- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-
should
Allows to specify assertions for the set of classes under consideration. E.g.
classes().should().haveSimpleName("Example")
Useshould(ArchCondition)to freely customize the condition against which the classes should be checked.- Returns:
- A syntax element, which can be used to create rules for the classes under consideration
-
should
@PublicAPI(usage=ACCESS) ClassesShouldConjunction should(ArchCondition<? super JavaClass> condition) Allows to specify assertions for the set of classes under consideration. E.g.
classes().should(haveSimpleName("Example"))should()is a fluent version of this API that allows your IDE to make suggestions.
Predefined conditions to customize and join can be found withinArchConditions.- Specified by:
shouldin interfaceGivenObjects<JavaClass>- Returns:
- A syntax element, which can be used to restrict the classes under consideration
-