Package com.tngtech.archunit.lang.syntax
Class ArchRuleDefinition.Creator
- java.lang.Object
-
- com.tngtech.archunit.lang.syntax.ArchRuleDefinition.Creator
-
- Enclosing class:
- ArchRuleDefinition
public static final class ArchRuleDefinition.Creator extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TYPE> GivenObjects<TYPE>
all(ClassesTransformer<TYPE> classesTransformer)
Takes aClassesTransformer
to specify how the set of objects of interest is to be created fromJavaClasses
(which are the general input obtained from aClassFileImporter
).GivenClasses
classes()
<TYPE> GivenObjects<TYPE>
no(ClassesTransformer<TYPE> classesTransformer)
Same asall(ClassesTransformer)
, but negates the following condition.GivenClass
noClass(java.lang.Class<?> clazz)
GivenClass
noClass(java.lang.String className)
GivenClasses
noClasses()
GivenClass
theClass(java.lang.Class<?> clazz)
GivenClass
theClass(java.lang.String className)
-
-
-
Method Detail
-
classes
@PublicAPI(usage=ACCESS) public GivenClasses classes()
-
noClasses
@PublicAPI(usage=ACCESS) public GivenClasses noClasses()
-
all
@PublicAPI(usage=ACCESS) public <TYPE> GivenObjects<TYPE> all(ClassesTransformer<TYPE> classesTransformer)
Takes aClassesTransformer
to specify how the set of objects of interest is to be created fromJavaClasses
(which are the general input obtained from aClassFileImporter
).- Type Parameters:
TYPE
- The target type to which the later usedArchCondition<TYPE>
will have to refer to- Parameters:
classesTransformer
- Transformer specifying how the importedJavaClasses
are to be transformed- Returns:
GivenObjects
to guide the creation of anArchRule
-
no
@PublicAPI(usage=ACCESS) public <TYPE> GivenObjects<TYPE> no(ClassesTransformer<TYPE> classesTransformer)
Same asall(ClassesTransformer)
, but negates the following condition.
-
theClass
@PublicAPI(usage=ACCESS) public GivenClass theClass(java.lang.Class<?> clazz)
-
theClass
@PublicAPI(usage=ACCESS) public GivenClass theClass(java.lang.String className)
-
noClass
@PublicAPI(usage=ACCESS) public GivenClass noClass(java.lang.Class<?> clazz)
-
noClass
@PublicAPI(usage=ACCESS) public GivenClass noClass(java.lang.String className)
-
-