Package com.tngtech.archunit.lang.syntax.elements
package com.tngtech.archunit.lang.syntax.elements
-
ClassDescriptionAllows to join together any existing
ArchCondition
of this rule with anotherArchCondition
viaand
oror
.ClassesThat<CONJUNCTION>CodeUnitsShould<CONJUNCTION extends CodeUnitsShouldConjunction<?>>CodeUnitsShouldConjunction<CODE_UNIT extends JavaCodeUnit>CodeUnitsThat<CONJUNCTION>FieldsShould<CONJUNCTION extends FieldsShouldConjunction>FieldsThat<CONJUNCTION>GivenCodeUnits<CODE_UNIT extends JavaCodeUnit>GivenCodeUnitsConjunction<CODE_UNIT extends JavaCodeUnit>GivenConjunction<OBJECTS>Allows to further filter the set of all objects viaGivenConjunction.and(DescribedPredicate)
orGivenConjunction.or(DescribedPredicate)
or create a completeArchRule
viaGivenConjunction.should(ArchCondition)
.GivenMembers<MEMBER extends JavaMember>GivenMembersConjunction<MEMBER extends JavaMember>GivenObjects<T>MembersShould<CONJUNCTION extends MembersShouldConjunction<?>>MembersShouldConjunction<MEMBER extends JavaMember>Same asClassesShouldConjunction
but for rules aboutmembers
.MembersThat<CONJUNCTION>MethodsShould<CONJUNCTION extends MethodsShouldConjunction>MethodsThat<CONJUNCTION>OnlyBeAccessedSpecification<CONJUNCTION>OnlyBeCalledSpecification<CONJUNCTION>