Package com.tngtech.archunit.lang
Interface ClassesTransformer<T>
- All Superinterfaces:
HasDescription
- All Known Implementing Classes:
AbstractClassesTransformer
,Slices.Transformer
-
Method Summary
Modifier and TypeMethodDescriptionthat
(DescribedPredicate<? super T> predicate) Can be used to further filter the transformation result.transform
(JavaClasses collection) Defines how to transform importedJavaClasses
to the respective objects to test.Methods inherited from interface com.tngtech.archunit.base.HasDescription
getDescription
-
Method Details
-
transform
Defines how to transform importedJavaClasses
to the respective objects to test.- Parameters:
collection
- ImportedJavaClasses
- Returns:
- A
DescribedIterable
holding the transformed objects - See Also:
-
that
Can be used to further filter the transformation result.- Parameters:
predicate
- Predicate to filter the collection of transformed objects- Returns:
- A transformer that additionally filters the transformed result
-
as
- Parameters:
description
- A new description for this transformer- Returns:
- A transformer for the same transformation with an adjusted description
-