Class RemoveMatching


public class RemoveMatching extends FilesProviderUnary
  • Constructor Details

    • RemoveMatching

      public RemoveMatching()
  • Method Details

    • transform

      protected List<File> transform(List<File> source, boolean debugMode)
      Description copied from class: FilesProviderUnary
      Transform an existing collection of files.

      Note that the incoming collection of files may be modified, and can no longer be used in its original form after this method call.

      Specified by:
      transform in class FilesProviderUnary
      Parameters:
      source - the incoming files (which may be consumed and modified).
      debugMode - whether we are executing in debug-mode or not
      Returns:
      the transformed (outgoing) files.
    • getRegEx

      public RegEx getRegEx()
      If a path matches a regular expression it is removed.
    • setRegEx

      public void setRegEx(RegEx regEx)
      If a path matches a regular expression it is removed.