Interface MembersShouldConjunction<MEMBER extends JavaMember>
- Type Parameters:
MEMBER- The concrete type ofJavaMemberthis conjunction describes, e.g.JavaMethod.
- All Superinterfaces:
ArchRule,CanBeEvaluated,CanOverrideDescription<ArchRule>,HasDescription
- All Known Subinterfaces:
CodeUnitsShouldConjunction<CODE_UNIT>,FieldsShouldConjunction,MethodsShouldConjunction
@PublicAPI(usage=ACCESS)
public interface MembersShouldConjunction<MEMBER extends JavaMember>
extends ArchRule
Same as
ClassesShouldConjunction but for rules about members.
In particular, the explanation about associativity of joining further conditions
via andShould(ArchCondition) and orShould(ArchCondition)
as explained within ClassesShouldConjunction also holds for the methods defined in this
hierarchy of classes.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tngtech.archunit.lang.ArchRule
ArchRule.Assertions, ArchRule.Factory, ArchRule.Transformation -
Method Summary
Modifier and TypeMethodDescriptionMembersShould<? extends MembersShouldConjunction<MEMBER>>Same asClassesShouldConjunction.andShould()but forJavaMemberandShould(ArchCondition<? super MEMBER> condition) Same asClassesShouldConjunction.andShould(ArchCondition)but forJavaMemberMembersShould<? extends MembersShouldConjunction<MEMBER>>orShould()Same asClassesShouldConjunction.orShould()but forJavaMemberorShould(ArchCondition<? super MEMBER> condition) Same asClassesShouldConjunction.orShould(ArchCondition)but forJavaMemberMethods inherited from interface com.tngtech.archunit.lang.ArchRule
allowEmptyShould, because, checkMethods inherited from interface com.tngtech.archunit.lang.CanBeEvaluated
evaluateMethods inherited from interface com.tngtech.archunit.core.domain.properties.CanOverrideDescription
asMethods inherited from interface com.tngtech.archunit.base.HasDescription
getDescription
-
Method Details
-
andShould
@PublicAPI(usage=ACCESS) MembersShouldConjunction<MEMBER> andShould(ArchCondition<? super MEMBER> condition) Same asClassesShouldConjunction.andShould(ArchCondition)but forJavaMember -
andShould
Same asClassesShouldConjunction.andShould()but forJavaMember -
orShould
@PublicAPI(usage=ACCESS) MembersShouldConjunction<MEMBER> orShould(ArchCondition<? super MEMBER> condition) Same asClassesShouldConjunction.orShould(ArchCondition)but forJavaMember -
orShould
Same asClassesShouldConjunction.orShould()but forJavaMember
-