Package com.tngtech.archunit.lang
Interface ClassesTransformer<T>
- All Superinterfaces:
HasDescription
- All Known Implementing Classes:
AbstractClassesTransformer
,Slices.Transformer
@PublicAPI(usage=INHERITANCE) public interface ClassesTransformer<T> extends HasDescription
-
Method Summary
Modifier and Type Method Description ClassesTransformer<T>
as(java.lang.String description)
ClassesTransformer<T>
that(DescribedPredicate<? super T> predicate)
Can be used to further filter the transformation result.DescribedIterable<T>
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:
Slices.Transformer
-
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
-