# PatternSet

open class PatternSet : AntBuilderAware, PatternFilterable(source)

Standalone implementation of PatternFilterable.

#### Since

0.7

## Constructors

PatternSet
Link copied to clipboard
constructor()
Creates a new `PatternSet`.

## Properties

excludes
Link copied to clipboard
open val excludes: Set<String>
excludeSpecs
Link copied to clipboard
open val excludeSpecs: Set<Spec<FileTreeElement>>
includes
Link copied to clipboard
open val includes: Set<String>
includeSpecs
Link copied to clipboard
open val includeSpecs: Set<Spec<FileTreeElement>>

## Functions

addToAntBuilder
Link copied to clipboard
open fun addToAntBuilder(node: Any, childNodeName: String): Any
Add to ant builder.
copyFrom
Link copied to clipboard
open fun copyFrom(sourcePattern: PatternFilterable): PatternSet
Copy.
equals
Link copied to clipboard
open fun equals(@Nullable o: @Nullable Any): Boolean
exclude
Link copied to clipboard
open fun exclude(closure: Closure): PatternSet
open fun exclude(spec: Spec<FileTreeElement>): PatternSet
Adds an exclude spec.
open fun exclude(excludes: Iterable): PatternSet
open fun exclude(excludes: Array<String>): PatternSet
Adds an Ant style exclude pattern.
excludeSpecs
Link copied to clipboard
open fun excludeSpecs(excludes: Iterable<Spec<FileTreeElement>>): PatternSet
Exclude specs.
getAsExcludeSpec
Link copied to clipboard
open fun getAsExcludeSpec(): Spec<FileTreeElement>
Returns the as exclude spec.
getAsIncludeSpec
Link copied to clipboard
open fun getAsIncludeSpec(): Spec<FileTreeElement>
Returns the as include spec.
getAsSpec
Link copied to clipboard
open fun getAsSpec(): Spec<FileTreeElement>
Returns the as spec.
getExcludeSpecsView
Link copied to clipboard
@Incubating
open fun getExcludeSpecsView(): Set<Spec<FileTreeElement>>
Like getExcludeSpecs, but returns a unmodifiable view or empty set.
getExcludesView
Link copied to clipboard
@Incubating
open fun getExcludesView(): Set<String>
Like getExcludes, but returns a unmodifiable view or empty set.
getIncludeSpecsView
Link copied to clipboard
@Incubating
open fun getIncludeSpecsView(): Set<Spec<FileTreeElement>>
Like getIncludeSpecs, but returns a unmodifiable view or empty set.
getIncludesView
Link copied to clipboard
@Incubating
open fun getIncludesView(): Set<String>
Like getIncludes, but returns a unmodifiable view or empty set.
hashCode
Link copied to clipboard
open fun hashCode(): Int
include
Link copied to clipboard
open fun include(closure: Closure): PatternSet
open fun include(spec: Spec<FileTreeElement>): PatternSet
Adds an include spec.
open fun include(includes: Iterable): PatternSet
open fun include(includes: Array<String>): PatternSet
Adds an Ant style include pattern.
includeSpecs
Link copied to clipboard
open fun includeSpecs(includeSpecs: Iterable<Spec<FileTreeElement>>): PatternSet
Include specs.
intersect
Link copied to clipboard
open fun intersect(): PatternSet
Intersect.
isCaseSensitive
Link copied to clipboard
open fun isCaseSensitive(): Boolean
Returns whether case sensitive is set.
isEmpty
Link copied to clipboard
open fun isEmpty(): Boolean
The PatternSet is considered empty when no includes or excludes have been added.
setCaseSensitive
Link copied to clipboard
open fun setCaseSensitive(caseSensitive: Boolean)
Sets the case sensitive.
setExcludes
Link copied to clipboard
open fun setExcludes(excludes: Iterable<String>): PatternSet
Set the allowable exclude patterns.
setIncludes
Link copied to clipboard
open fun setIncludes(includes: Iterable<String>): PatternSet
Set the allowable include patterns.