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
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
of
@PublicAPI(usage=ACCESS) public static CompositeArchRule of(ArchRule rule)
-
of
@PublicAPI(usage=ACCESS) public static CompositeArchRule of(java.lang.Iterable<? extends ArchRule> rules)
-
priority
@PublicAPI(usage=ACCESS) public static CompositeArchRule.Creator priority(Priority priority)
-
and
@PublicAPI(usage=ACCESS) public CompositeArchRule and(ArchRule rule)
-
check
@PublicAPI(usage=ACCESS) public void check(JavaClasses classes)
-
because
@PublicAPI(usage=ACCESS) public CompositeArchRule because(java.lang.String reason)
-
evaluate
@PublicAPI(usage=ACCESS) public EvaluationResult evaluate(JavaClasses classes)
- Specified by:
evaluate
in interfaceCanBeEvaluated
-
as
@PublicAPI(usage=ACCESS) public CompositeArchRule as(java.lang.String newDescription)
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
@PublicAPI(usage=ACCESS) public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceHasDescription
-
-