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 classCompositeArchRule.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 CompositeArchRuleand(ArchRule rule)CompositeArchRuleas(java.lang.String newDescription)Allows to adjust the description of this object.CompositeArchRulebecause(java.lang.String reason)voidcheck(JavaClasses classes)EvaluationResultevaluate(JavaClasses classes)java.lang.StringgetDescription()static CompositeArchRuleof(ArchRule rule)static CompositeArchRule.Creatorpriority(Priority priority)
-
-
-
Method Detail
-
of
@PublicAPI(usage=ACCESS) public static CompositeArchRule of(ArchRule rule)
-
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:
evaluatein interfaceCanBeEvaluated
-
as
@PublicAPI(usage=ACCESS) public CompositeArchRule as(java.lang.String newDescription)
Description copied from interface:CanOverrideDescriptionAllows 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:
asin 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:
getDescriptionin interfaceHasDescription
-
-