Package com.tngtech.archunit.lang.syntax
Class ArchRuleDefinition.Creator
java.lang.Object
com.tngtech.archunit.lang.syntax.ArchRuleDefinition.Creator
- Enclosing class:
- ArchRuleDefinition
-
Method Summary
Modifier and TypeMethodDescription<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
).classes()
fields()
members()
methods()
<TYPE> GivenObjects<TYPE>
no
(ClassesTransformer<TYPE> classesTransformer) Same asall(ClassesTransformer)
, but negates the following condition.noFields()
-
Method Details
-
classes
-
noClasses
-
members
-
noMembers
-
fields
-
noFields
-
codeUnits
-
noCodeUnits
-
constructors
-
noConstructors
-
methods
-
noMethods
-
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
-
theClass
-
noClass
-
noClass
-