api / org.gradle.api.file / SourceDirectorySet / getFilter

getFilter

abstract fun getFilter(): PatternFilterable

Returns the filter used to select the source from the source directories. These filter patterns are applied after the include and exclude patterns of this source directory set. Generally, the filter patterns are used to restrict the contents to certain types of files, eg *.java.

Return
The filter patterns.