We should add to ArchRuleDefinition the factory methods
GivenFields fields()
GivenMethods methods()
GivenConstructors constructors()
GivenCodeUnits codeUnits()
GivenMembers members()
that provide an easy entrance to speak about the respective objects, i.e. provide a that(predicate) and should(condition) fluent API. At some later point, this API can be extended for generally useful methods like declaredIn(clazz) or similar.
We should add to
ArchRuleDefinitionthe factory methodsGivenFields fields()GivenMethods methods()GivenConstructors constructors()GivenCodeUnits codeUnits()GivenMembers members()that provide an easy entrance to speak about the respective objects, i.e. provide a
that(predicate)andshould(condition)fluent API. At some later point, this API can be extended for generally useful methods likedeclaredIn(clazz)or similar.