Interface GivenObjects<T>
- All Known Subinterfaces:
GivenClasses
,GivenCodeUnits<CODE_UNIT>
,GivenConstructors
,GivenFields
,GivenMembers<MEMBER>
,GivenMethods
,GivenNamedSlices
,GivenSlices
-
Method Summary
Modifier and TypeMethodDescriptionshould
(ArchCondition<? super T> condition) Allows to form a rule by passing a condition the objects under consideration must satisfy.that
(DescribedPredicate<? super T> predicate) Allows to restrict the set of objects under consideration.
-
Method Details
-
should
Allows to form a rule by passing a condition the objects under consideration must satisfy. E.g.
all(customObjects)
.should(behaveAsExpected())
- Returns:
- An
ArchRule
which can be evaluated on importedJavaClasses
-
that
Allows to restrict the set of objects under consideration. E.g.
all(customObjects)
.that(predicate)
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
.- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-