Interface ClassesTransformer<T>

All Superinterfaces:
HasDescription
All Known Implementing Classes:
AbstractClassesTransformer, Slices.Transformer

@PublicAPI(usage=INHERITANCE) public interface ClassesTransformer<T> extends HasDescription
  • Method Details

    • transform

      DescribedIterable<T> transform(JavaClasses collection)
      Defines how to transform imported JavaClasses to the respective objects to test.
      Parameters:
      collection - Imported JavaClasses
      Returns:
      A DescribedIterable holding the transformed objects
      See Also:
    • that

      ClassesTransformer<T> that(DescribedPredicate<? super T> predicate)
      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

      ClassesTransformer<T> as(String description)
      Parameters:
      description - A new description for this transformer
      Returns:
      A transformer for the same transformation with an adjusted description