Package com.tngtech.archunit.lang
Class CompositeArchRule
java.lang.Object
com.tngtech.archunit.lang.CompositeArchRule
- All Implemented Interfaces:
HasDescription
,CanOverrideDescription<ArchRule>
,ArchRule
,CanBeEvaluated
public final class CompositeArchRule extends java.lang.Object implements ArchRule
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeArchRule.Creator
Nested classes/interfaces inherited from interface com.tngtech.archunit.lang.ArchRule
ArchRule.Assertions, ArchRule.Factory, ArchRule.Transformation
-
Method Summary
Modifier and Type Method Description CompositeArchRule
and(ArchRule rule)
CompositeArchRule
as(java.lang.String newDescription)
Allows to adjust the description of this object.CompositeArchRule
because(java.lang.String reason)
void
check(JavaClasses classes)
EvaluationResult
evaluate(JavaClasses classes)
java.lang.String
getDescription()
static CompositeArchRule
of(ArchRule rule)
static CompositeArchRule
of(java.lang.Iterable<? extends ArchRule> rules)
static CompositeArchRule.Creator
priority(Priority priority)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
of
-
of
@PublicAPI(usage=ACCESS) public static CompositeArchRule of(java.lang.Iterable<? extends ArchRule> rules) -
priority
-
and
-
check
-
because
-
evaluate
- Specified by:
evaluate
in interfaceCanBeEvaluated
-
as
Description copied from interface:CanOverrideDescription
Allows to adjust the description of this object. Note that this method will not modify the current object, but instead return a new object with adjusted description.- Specified by:
as
in interfaceCanOverrideDescription<ArchRule>
- Parameters:
newDescription
- The description the result of this method will hold- Returns:
- A new equivalent object with adjusted description
-
getDescription
- Specified by:
getDescription
in interfaceHasDescription
-