| Modifier and Type | Method and Description |
|---|---|
NamedDomainObjectSet<T> |
NamedDomainObjectSet.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
NamedDomainObjectList<T> |
NamedDomainObjectList.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
NamedDomainObjectCollection<T> |
NamedDomainObjectCollection.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
DomainObjectSet<T> |
DomainObjectSet.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
DomainObjectCollection<T> |
DomainObjectCollection.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
void |
Task.onlyIf(Spec<? super Task> onlyIfSpec)
Execute the task only if the given spec is satisfied.
|
void |
Task.setOnlyIf(Spec<? super Task> onlyIfSpec)
Execute the task only if the given spec is satisfied.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
Configuration.copy(Spec<? super Dependency> dependencySpec)
Creates a copy of this configuration ignoring superconfigurations (see
Configuration.copy() but filtering
the dependencies using the specified dependency spec. |
Configuration |
Configuration.copyRecursive(Spec<? super Dependency> dependencySpec)
Creates a copy of this configuration with dependencies from superconfigurations (see
Configuration.copyRecursive())
but filtering the dependencies using the dependencySpec. |
FileCollection |
Configuration.fileCollection(Spec<? super Dependency> dependencySpec)
Resolves this configuration lazily.
|
Set<File> |
Configuration.files(Spec<? super Dependency> dependencySpec)
Resolves this configuration.
|
Set<File> |
ResolvedConfiguration.getFiles(Spec<? super Dependency> dependencySpec)
Returns the files for the specified subset of configuration dependencies.
|
Set<File> |
LenientConfiguration.getFiles(Spec<? super Dependency> dependencySpec)
returns successfully resolved files for successfully resolved dependencies
|
Set<ResolvedDependency> |
ResolvedConfiguration.getFirstLevelModuleDependencies(Spec<? super Dependency> dependencySpec)
Returns the
ResolvedDependency instances for each direct dependency of the configuration that matches
the given spec. |
Set<ResolvedDependency> |
LenientConfiguration.getFirstLevelModuleDependencies(Spec<? super Dependency> dependencySpec)
returns successfully resolved dependencies
|
| Modifier and Type | Method and Description |
|---|---|
CopySpec |
CopySpec.exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec.
|
FileCollection |
FileCollection.filter(Spec<? super File> filterSpec)
Restricts the contents of this collection to those files which match the given criteria.
|
CopySpec |
CopySpec.include(Spec<FileTreeElement> includeSpec)
Adds an include spec.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeDomainObjectSet.ItemIsUniqueInCompositeSpec |
class |
CompositeDomainObjectSet.ItemNotInCompositeSpec |
| Modifier and Type | Method and Description |
|---|---|
Spec<? super TaskInternal> |
TaskInternal.getOnlyIf() |
Spec<? super TaskInternal> |
AbstractTask.getOnlyIf() |
Spec<? super TaskInternal> |
TaskOutputsInternal.getUpToDateSpec() |
| Modifier and Type | Method and Description |
|---|---|
protected <S extends T> |
DefaultDomainObjectCollection.createFilter(Class<? extends S> type,
Spec<? super S> spec) |
protected CollectionFilter<T> |
DefaultDomainObjectCollection.createFilter(Spec<? super T> filter) |
DomainObjectSet<T> |
DelegatingDomainObjectSet.matching(Spec<? super T> spec) |
NamedDomainObjectSet<T> |
DefaultNamedDomainObjectSet.matching(Spec<? super T> spec) |
NamedDomainObjectList<T> |
DefaultNamedDomainObjectList.matching(Spec<? super T> spec) |
NamedDomainObjectCollection<T> |
DefaultNamedDomainObjectCollection.matching(Spec<? super T> spec) |
DomainObjectSet<T> |
DefaultDomainObjectSet.matching(Spec<? super T> spec) |
DomainObjectCollection<T> |
DefaultDomainObjectCollection.matching(Spec<? super T> spec) |
void |
AbstractTask.onlyIf(Spec<? super Task> onlyIfSpec) |
void |
AbstractTask.setOnlyIf(Spec<? super Task> spec) |
| Constructor and Description |
|---|
FilteredAction(Spec<? super T> filter,
Action<? super T> action) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
DefaultConfiguration.copy(Spec<? super Dependency> dependencySpec) |
Configuration |
DefaultConfiguration.copyRecursive(Spec<? super Dependency> dependencySpec) |
FileCollection |
DefaultConfiguration.fileCollection(Spec<? super Dependency> dependencySpec) |
Set<File> |
DefaultConfiguration.files(Spec<? super Dependency> dependencySpec) |
| Modifier and Type | Method and Description |
|---|---|
Spec<Statement> |
ClasspathScriptTransformer.isScriptBlock() |
| Modifier and Type | Method and Description |
|---|---|
Set<File> |
DefaultResolvedConfiguration.getFiles(Spec<? super Dependency> dependencySpec) |
Set<File> |
DefaultLenientConfiguration.getFiles(Spec<? super Dependency> dependencySpec) |
Set<File> |
DefaultLenientConfiguration.getFilesStrict(Spec<? super Dependency> dependencySpec) |
Set<ResolvedDependency> |
DefaultResolvedConfiguration.getFirstLevelModuleDependencies(Spec<? super Dependency> dependencySpec) |
Set<ResolvedDependency> |
DefaultLenientConfiguration.getFirstLevelModuleDependencies(Spec<? super Dependency> dependencySpec) |
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleVersionSpec
Manages sets of exclude rules, allowing union and intersection operations on the rules.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CollectionFilter<T> |
| Constructor and Description |
|---|
CollectionFilter(Class<? extends T> type,
Spec<? super T> spec) |
| Modifier and Type | Class and Description |
|---|---|
class |
RelativePathSpec |
| Modifier and Type | Method and Description |
|---|---|
PatternFilterable |
DefaultSourceDirectorySet.exclude(Spec<FileTreeElement> excludeSpec) |
FileCollection |
CompositeFileCollection.filter(Spec<? super File> filterSpec) |
FileCollection |
AbstractFileCollection.filter(Spec<? super File> filterSpec) |
PatternFilterable |
DefaultSourceDirectorySet.include(Spec<FileTreeElement> includeSpec) |
| Constructor and Description |
|---|
RelativePathSpec(Spec<? super RelativePath> pathSpec) |
| Modifier and Type | Method and Description |
|---|---|
DefaultConfigurableFileTree |
DefaultConfigurableFileTree.exclude(Spec<FileTreeElement> excludeSpec) |
DefaultConfigurableFileTree |
DefaultConfigurableFileTree.include(Spec<FileTreeElement> includeSpec) |
| Modifier and Type | Method and Description |
|---|---|
List<Spec<FileTreeElement>> |
CopySpecImpl.getAllExcludeSpecs() |
List<Spec<FileTreeElement>> |
CopySpecImpl.getAllIncludeSpecs() |
| Modifier and Type | Method and Description |
|---|---|
CopySpec |
CopySpecImpl.exclude(Spec<FileTreeElement> excludeSpec) |
CopySpec |
CopyActionImpl.exclude(Spec<FileTreeElement> excludeSpec) |
CopySpec |
CopySpecImpl.include(Spec<FileTreeElement> includeSpec) |
CopySpec |
CopyActionImpl.include(Spec<FileTreeElement> includeSpec) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultPatternMatcher |
class |
NameOnlyPatternMatcher
PatternMatcher for handling the very common '**\name' pattern
more efficiently than the DefaultPatternMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
static Spec<RelativePath> |
PatternMatcherFactory.getPatternMatcher(boolean partialMatchDirs,
boolean caseSensitive,
String pattern) |
| Modifier and Type | Method and Description |
|---|---|
PluginCollection<T> |
DefaultPluginCollection.matching(Spec<? super T> spec) |
| Modifier and Type | Method and Description |
|---|---|
Set<T> |
IProjectRegistry.findAll(Spec<? super T> constraint) |
Set<T> |
DefaultProjectRegistry.findAll(Spec<? super T> constraint) |
| Modifier and Type | Method and Description |
|---|---|
Spec<? super TaskInternal> |
DefaultTaskOutputs.getUpToDateSpec() |
| Modifier and Type | Method and Description |
|---|---|
TaskCollection<T> |
DefaultTaskCollection.matching(Spec<? super T> spec) |
void |
DefaultTaskOutputs.upToDateWhen(Spec<? super Task> upToDateSpec) |
| Modifier and Type | Method and Description |
|---|---|
PluginCollection<T> |
PluginCollection.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AndSpec<T>
A
CompositeSpec which requires all its specs to be true in order to evaluate to true. |
class |
CompositeSpec<T>
A
Spec which aggregates a sequence of other Spec instances. |
class |
NotSpec<T>
A
Spec implementation which negates another Spec. |
class |
OrSpec<T>
A
CompositeSpec which requires any one of its specs to be true in order to evaluate to
true. |
| Modifier and Type | Field and Description |
|---|---|
static Spec<Object> |
Specs.SATISFIES_ALL |
static Spec<Object> |
Specs.SATISFIES_NONE |
| Modifier and Type | Method and Description |
|---|---|
static <T> Spec<T> |
Specs.convertClosureToSpec(Closure cl) |
static <T> Spec<T> |
Specs.or(boolean defaultWhenNoSpecs,
List<? extends Spec<? super T>> specs) |
static <T> Spec<T> |
Specs.satisfyAll() |
static <T> Spec<T> |
Specs.satisfyNone() |
| Modifier and Type | Method and Description |
|---|---|
List<Spec<? super T>> |
CompositeSpec.getSpecs() |
| Modifier and Type | Method and Description |
|---|---|
AndSpec<T> |
AndSpec.and(Spec<? super T>... specs) |
static <T> AndSpec<T> |
Specs.and(Spec<? super T>... specs) |
static <T> Set<T> |
Specs.filterIterable(Iterable<? extends T> iterable,
Spec<? super T> spec) |
static <T> NotSpec<T> |
Specs.not(Spec<? super T> spec) |
static <T> OrSpec<T> |
Specs.or(Spec<? super T>... specs) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Spec<T> |
Specs.or(boolean defaultWhenNoSpecs,
List<? extends Spec<? super T>> specs) |
| Constructor and Description |
|---|
AndSpec(Spec<? super T>... specs) |
CompositeSpec(Spec<? super T>... specs) |
NotSpec(Spec<? super T> sourceSpec) |
OrSpec(Spec<? super T>... specs) |
| Constructor and Description |
|---|
AndSpec(Iterable<? extends Spec<? super T>> specs) |
CompositeSpec(Iterable<? extends Spec<? super T>> specs) |
| Modifier and Type | Method and Description |
|---|---|
SourceTask |
SourceTask.exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec.
|
AbstractCopyTask |
AbstractCopyTask.exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec.
|
SourceTask |
SourceTask.include(Spec<FileTreeElement> includeSpec)
Adds an include spec.
|
AbstractCopyTask |
AbstractCopyTask.include(Spec<FileTreeElement> includeSpec)
Adds an include spec.
|
TaskCollection<T> |
TaskCollection.matching(Spec<? super T> spec)
Returns a collection which contains the objects in this collection which meet the given specification.
|
void |
TaskOutputs.upToDateWhen(Spec<? super Task> upToDateSpec)
Adds a predicate to determine whether the outputs of this task are up-to-date.
|
| Modifier and Type | Method and Description |
|---|---|
Test |
Test.exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec.
|
Test |
Test.include(Spec<FileTreeElement> includeSpec)
Adds an include spec.
|
| Modifier and Type | Method and Description |
|---|---|
PatternFilterable |
PatternFilterable.exclude(Spec<FileTreeElement> excludeSpec)
Adds an exclude spec.
|
PatternFilterable |
PatternFilterable.include(Spec<FileTreeElement> includeSpec)
Adds an include spec.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TaskGraphExecuter.useFilter(Spec<? super Task> filter)
Sets the filter to use when adding tasks to this graph.
|
void |
DefaultTaskGraphExecuter.useFilter(Spec<? super Task> filter) |
| Modifier and Type | Method and Description |
|---|---|
DaemonConnection |
DefaultDaemonConnector.connect(Spec<? super DaemonContext> constraint) |
DaemonConnection |
DaemonConnector.connect(Spec<? super DaemonContext> constraint)
Connects to a daemon that matches the given constraint, starting one if required.
|
DaemonConnection |
DefaultDaemonConnector.maybeConnect(Spec<? super DaemonContext> constraint) |
DaemonConnection |
DaemonConnector.maybeConnect(Spec<? super DaemonContext> constraint)
Attempts to connect to a daemon that matches the given constraint.
|
| Constructor and Description |
|---|
DaemonClient(DaemonConnector connector,
BuildClientMetaData clientMetaData,
OutputEventListener outputEventListener,
Spec<DaemonContext> compatibilitySpec,
InputStream buildStandardInput) |
SingleUseDaemonClient(DaemonConnector connector,
BuildClientMetaData clientMetaData,
OutputEventListener outputEventListener,
Spec<DaemonContext> compatibilitySpec,
InputStream buildStandardInput) |
| Modifier and Type | Class and Description |
|---|---|
class |
DaemonCompatibilitySpec |
| Modifier and Type | Method and Description |
|---|---|
static <T,C extends Collection<T>> |
CollectionUtils.filter(Iterable<T> source,
C destination,
Spec<? super T> filter) |
static <T> List<T> |
CollectionUtils.filter(List<T> list,
Spec<? super T> filter) |
static <T> Set<T> |
CollectionUtils.filter(Set<T> set,
Spec<? super T> filter) |
static <T> T |
CollectionUtils.findFirst(Iterable<T> source,
Spec<? super T> filter) |
Copyright © 2013. All rights reserved