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.
classes()
.that(haveSimpleName("Example"))
predicates
can be found within a subclassPredicates
of the respective domain object or a common ancestor. For example,predicates
targetingJavaClass
can be found withinJavaClass.Predicates
or one of the respective ancestors likeHasName.Predicates
.- Specified by:
that
in 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")
should(ArchCondition)
to freely customize the condition against which the classes should be checked.- Returns:
- A syntax element, which can be used to restrict 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:
should
in interfaceGivenObjects<JavaClass>
- Returns:
- A syntax element, which can be used to restrict the classes under consideration
-