Interface MembersShouldConjunction<MEMBER extends JavaMember>
- Type Parameters:
MEMBER
- The concrete type ofJavaMember
this 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 forJavaMember
andShould
(ArchCondition<? super MEMBER> condition) Same asClassesShouldConjunction.andShould(ArchCondition)
but forJavaMember
MembersShould<? extends MembersShouldConjunction<MEMBER>>
orShould()
Same asClassesShouldConjunction.orShould()
but forJavaMember
orShould
(ArchCondition<? super MEMBER> condition) Same asClassesShouldConjunction.orShould(ArchCondition)
but forJavaMember
Methods inherited from interface com.tngtech.archunit.lang.ArchRule
allowEmptyShould, because, check
Methods inherited from interface com.tngtech.archunit.lang.CanBeEvaluated
evaluate
Methods inherited from interface com.tngtech.archunit.core.domain.properties.CanOverrideDescription
as
Methods 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
-