PatternSet

Standalone implementation of PatternFilterable.

Since

0.7

Constructors

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

Properties

Link copied to clipboard
open val excludes: Set<String>
Link copied to clipboard
Link copied to clipboard
open val includes: Set<String>
Link copied to clipboard

Functions

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