public class RemoveMatching extends FilesProviderUnary
Constructor and Description |
---|
RemoveMatching() |
Modifier and Type | Method and Description |
---|---|
RegEx |
getRegEx()
If a path matches a regular expression it is removed.
|
void |
setRegEx(RegEx regEx)
If a path matches a regular expression it is removed.
|
protected List<File> |
transform(List<File> source,
boolean debugMode)
Transform an existing collection of files.
|
create, getFiles, rootDirectory, setFiles
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected List<File> transform(List<File> source, boolean debugMode)
FilesProviderUnary
Note that the incoming collection of files may be modified, and can no longer be used in its original form after this method call.
transform
in class FilesProviderUnary
source
- the incoming files (which may be consumed and modified).debugMode
- whether we are executing in debug-mode or notpublic RegEx getRegEx()
public void setRegEx(RegEx regEx)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.