Class SliceRule
- java.lang.Object
-
- com.tngtech.archunit.library.dependencies.SliceRule
-
- All Implemented Interfaces:
HasDescription
,CanOverrideDescription<ArchRule>
,ArchRule
,CanBeEvaluated
public final class SliceRule extends java.lang.Object implements ArchRule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tngtech.archunit.lang.ArchRule
ArchRule.Assertions, ArchRule.Factory, ArchRule.Transformation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SliceRule
as(java.lang.String newDescription)
Allows to adjust the description of this object.SliceRule
because(java.lang.String reason)
void
check(JavaClasses classes)
EvaluationResult
evaluate(JavaClasses classes)
java.lang.String
getDescription()
SliceRule
ignoreDependency(DescribedPredicate<? super JavaClass> origin, DescribedPredicate<? super JavaClass> target)
SliceRule
ignoreDependency(java.lang.Class<?> origin, java.lang.Class<?> target)
SliceRule
ignoreDependency(java.lang.String origin, java.lang.String target)
java.lang.String
toString()
-
-
-
Method Detail
-
check
@PublicAPI(usage=ACCESS) public void check(JavaClasses classes)
-
because
@PublicAPI(usage=ACCESS) public SliceRule because(java.lang.String reason)
-
evaluate
@PublicAPI(usage=ACCESS) public EvaluationResult evaluate(JavaClasses classes)
- Specified by:
evaluate
in interfaceCanBeEvaluated
-
getDescription
@PublicAPI(usage=ACCESS) public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceHasDescription
-
as
@PublicAPI(usage=ACCESS) public SliceRule 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
-
ignoreDependency
@PublicAPI(usage=ACCESS) public SliceRule ignoreDependency(java.lang.Class<?> origin, java.lang.Class<?> target)
-
ignoreDependency
@PublicAPI(usage=ACCESS) public SliceRule ignoreDependency(java.lang.String origin, java.lang.String target)
-
ignoreDependency
@PublicAPI(usage=ACCESS) public SliceRule ignoreDependency(DescribedPredicate<? super JavaClass> origin, DescribedPredicate<? super JavaClass> target)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-