public class DefaultSourceSetContainer extends AbstractNamedDomainObjectContainer<SourceSet> implements SourceSetContainer
| Constructor and Description |
|---|
DefaultSourceSetContainer(FileResolver fileResolver,
TaskResolver taskResolver,
Instantiator classGenerator) |
| Modifier and Type | Method and Description |
|---|---|
SourceSet |
add(String name)
Adds a source set with the given name.
|
SourceSet |
add(String name,
Closure closure)
Adds a source set with the given name.
|
protected SourceSet |
doCreate(String name)
Subclasses need only implement this method as the creation strategy.
|
configure, create, create, createConfigureDelegate, getDisplayNamefiltered, filteredStore, findAll, matching, matching, withTypeadd, addRule, addRule, assertCanAdd, assertCanAdd, createNotFoundException, findByName, findByNameWithoutRules, getAsDynamicObject, getAsMap, getAt, getByName, getByName, getConvention, getElementsAsDynamicObject, getExtensions, getInstantiator, getNamer, getRules, getTypeDisplayName, handleAttemptToAddItemWithNonUniqueName, hasWithName, removeByNameaddAll, all, all, assertMutable, beforeChange, clear, contains, containsAll, createFilter, createFilter, createFilter, filteredEvents, findAll, getEventRegister, getStore, getType, isEmpty, iterator, remove, removeAll, retainAll, size, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypetoArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, create, createfindAll, matching, matching, withTypeadd, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRulesall, all, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withTypepublic DefaultSourceSetContainer(FileResolver fileResolver, TaskResolver taskResolver, Instantiator classGenerator)
protected SourceSet doCreate(String name)
AbstractNamedDomainObjectContainerdoCreate in class AbstractNamedDomainObjectContainer<SourceSet>public SourceSet add(String name)
SourceSetContaineradd in interface SourceSetContainername - The name of the new source set.public SourceSet add(String name, Closure closure)
SourceSetContaineradd in interface SourceSetContainername - The name of the new source set.closure - The closure to use to configure the source set.Copyright © 2013. All rights reserved