public class CppApplicationSources extends dev.nokee.language.base.internal.BaseFunctionalSourceSet implements ComponentSources, HasHeadersSourceSet, HasCppSourceSet
FunctionalSourceSet
,
ComponentSources
,
HasHeadersSourceSet
,
HasCppSourceSet
Modifier and Type | Field and Description |
---|---|
protected org.gradle.internal.metaobject.DynamicObject |
elementsDynamicObject |
Constructor and Description |
---|
CppApplicationSources() |
Modifier and Type | Method and Description |
---|---|
void |
configure(String name,
Action<? super T> action)
Configures an element of the specified name.
|
<S extends T> |
configure(String name,
Class<S> type,
Action<? super S> action)
Configures an element of the specified name and type.
|
<S extends T> |
configure(String name,
Class<S> type,
groovy.lang.Closure<Void> closure)
Configures an element of the specified name and type.
|
void |
configure(String name,
groovy.lang.Closure<Void> closure)
Configures an element of the specified name.
|
void |
configureEach(Action<? super T> action)
Registers an action to execute to configure each element in the view.
|
<S extends T> |
configureEach(Class<S> type,
Action<? super S> action)
Registers an action to execute to configure each element in the view.
|
<S extends T> |
configureEach(Class<S> type,
groovy.lang.Closure<Void> closure)
Registers a closure to execute to configure each element in the view.
|
void |
configureEach(groovy.lang.Closure<Void> closure)
Registers a closure to execute to configure each element in the view.
|
void |
configureEach(Spec<? super T> spec,
Action<? super T> action)
Registers an action to execute to configure each element in the view matching the given specification.
|
void |
configureEach(Spec<? super T> spec,
groovy.lang.Closure<Void> closure)
Registers a closure to execute to configure each element in the view matching the given specification.
|
Provider<List<T>> |
filter(Spec<? super T> spec)
Returns a single list containing all elements matching the given specification.
|
<S> Provider<List<S>> |
flatMap(Transformer<? extends Iterable<S>,? super T> mapper)
Returns a single list containing all elements yielded from results of mapper function being invoked on each element of this view.
|
Set<T> |
get()
Returns the contents of this view as a
Set of <T> instances. |
DomainObjectProvider<T> |
get(String name)
Returns an element provider for the specified name.
|
<S extends T> |
get(String name,
Class<S> type)
Returns an element provider for the specified name and type.
|
org.gradle.internal.metaobject.MethodAccess |
getAdditionalMethods() |
org.gradle.internal.metaobject.PropertyAccess |
getAdditionalProperties() |
Provider<Set<T>> |
getElements()
Returns the contents of this view as a
Provider of <T> instances. |
<S> Provider<List<S>> |
map(Transformer<? extends S,? super T> mapper)
Returns a list containing the results of applying the given mapper function to each element in the view.
|
void |
whenElementKnownEx(Action<? super KnownDomainObject<T>> action)
Executes given action when an element becomes known to the view.
|
<S extends T> |
whenElementKnownEx(Class<S> type,
Action<? super KnownDomainObject<S>> action)
Executes given action when an element becomes known to the view of the specified type.
|
<S extends T> |
whenElementKnownEx(Class<S> type,
groovy.lang.Closure<Void> closure)
Executes given closure when an element becomes known to the view of the specified type.
|
void |
whenElementKnownEx(groovy.lang.Closure<Void> closure)
Executes given closure when an element becomes known to the view of the specified type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHeaders, headers, headers
cpp, cpp, getCpp
configure, configure, configure, configure, get, get
configureEach, configureEach, configureEach, configureEach, configureEach, configureEach, filter, flatMap, get, getElements, map, whenElementKnownEx, whenElementKnownEx, whenElementKnownEx, whenElementKnownEx
protected org.gradle.internal.metaobject.DynamicObject elementsDynamicObject
public final void configure(String name, Action<? super T> action)
NamedDomainObjectView
configure
in interface NamedDomainObjectView<T>
name
- the name of the element to configure.action
- the configuration action.public final void configure(String name, groovy.lang.Closure<Void> closure)
NamedDomainObjectView
configure
in interface NamedDomainObjectView<T>
name
- the name of the element to configure.closure
- the configuration closure.public <S extends T> void configure(String name, Class<S> type, Action<? super S> action)
NamedDomainObjectView
configure
in interface NamedDomainObjectView<T>
S
- the type of the element to configure.name
- the name of the element to configure.type
- the type of element to configure.action
- the configuration action.public final <S extends T> void configure(String name, Class<S> type, groovy.lang.Closure<Void> closure)
NamedDomainObjectView
configure
in interface NamedDomainObjectView<T>
S
- The type of the element to configure.name
- The name of the element to configure.type
- The type of element to configure.closure
- The configuration closure.public final DomainObjectProvider<T> get(String name)
NamedDomainObjectView
get
in interface NamedDomainObjectView<T>
name
- the name of the elementpublic final <S extends T> DomainObjectProvider<S> get(String name, Class<S> type)
NamedDomainObjectView
get
in interface NamedDomainObjectView<T>
S
- the type of the elementname
- the name of the elementtype
- the type of the elementpublic final org.gradle.internal.metaobject.MethodAccess getAdditionalMethods()
getAdditionalMethods
in interface org.gradle.internal.metaobject.MethodMixIn
public final org.gradle.internal.metaobject.PropertyAccess getAdditionalProperties()
getAdditionalProperties
in interface org.gradle.internal.metaobject.PropertyMixIn
public final void configureEach(Action<? super T> action)
DomainObjectView
configureEach
in interface DomainObjectView<T>
action
- The action to execute on each element for configuration.public final void configureEach(groovy.lang.Closure<Void> closure)
DomainObjectView
configureEach
in interface DomainObjectView<T>
closure
- The closure to execute on each element for configuration.public <S extends T> void configureEach(Class<S> type, Action<? super S> action)
DomainObjectView
view.withType(Foo).configureEach { ... }
.configureEach
in interface DomainObjectView<T>
S
- the base type of the element to configure.type
- the type of binary to select.action
- the action to execute on each element for configuration.public final <S extends T> void configureEach(Class<S> type, groovy.lang.Closure<Void> closure)
DomainObjectView
view.withType(Foo).configureEach { ... }
.configureEach
in interface DomainObjectView<T>
S
- the base type of the element to configure.type
- the type of binary to select.closure
- the closure to execute on each element for configuration.public final void configureEach(Spec<? super T> spec, Action<? super T> action)
DomainObjectView
configureEach
in interface DomainObjectView<T>
spec
- a specification to satisfy. The spec is applied to each binary prior to configuration.action
- the action to execute on each element for configuration.public final void configureEach(Spec<? super T> spec, groovy.lang.Closure<Void> closure)
DomainObjectView
configureEach
in interface DomainObjectView<T>
spec
- a specification to satisfy. The spec is applied to each binary prior to configuration.closure
- the closure to execute on each element for configuration.public final Provider<Set<T>> getElements()
DomainObjectView
Provider
of <T>
instances.
The returned Provider
is live, and tracks changes of the view.
getElements
in interface DomainObjectView<T>
public final Set<T> get()
DomainObjectView
Set
of <T>
instances.get
in interface DomainObjectView<T>
public final <S> Provider<List<S>> map(Transformer<? extends S,? super T> mapper)
DomainObjectView
The returned Provider
is live, and tracks changes of the view.
map
in interface DomainObjectView<T>
S
- the type of the mapped elementsmapper
- a transform function to apply on each element of this viewpublic final <S> Provider<List<S>> flatMap(Transformer<? extends Iterable<S>,? super T> mapper)
DomainObjectView
The returned Provider
is live, and tracks changes of the view.
flatMap
in interface DomainObjectView<T>
S
- the type of the mapped elementsmapper
- a transform function to apply on each element of this viewpublic final Provider<List<T>> filter(Spec<? super T> spec)
DomainObjectView
The returned Provider
is live, and tracks changes of the view.
filter
in interface DomainObjectView<T>
spec
- a specification to satisfypublic final void whenElementKnownEx(Action<? super KnownDomainObject<T>> action)
DomainObjectView
whenElementKnownEx
in interface DomainObjectView<T>
action
- the action to execute for each known element of this viewpublic final void whenElementKnownEx(groovy.lang.Closure<Void> closure)
DomainObjectView
whenElementKnownEx
in interface DomainObjectView<T>
closure
- the closure to execute for each known element of this viewpublic <S extends T> void whenElementKnownEx(Class<S> type, Action<? super KnownDomainObject<S>> action)
DomainObjectView
whenElementKnownEx
in interface DomainObjectView<T>
S
- the element type to matchtype
- the element type to matchaction
- the action to execute for each known element of this viewpublic final <S extends T> void whenElementKnownEx(Class<S> type, groovy.lang.Closure<Void> closure)
DomainObjectView
whenElementKnownEx
in interface DomainObjectView<T>
S
- the element type to matchtype
- the element type to matchclosure
- the closure to execute for each known element of this view