- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 2,479 for property2 (0.2 sec)
-
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/PropertyDelegate.kt
} internal fun propertyDelegateFor(dynamicLookupRoutine: DynamicLookupRoutine, target: Any, property: KProperty<*>): PropertyDelegate = dynamicObjectFor(target).let { owner -> if (property.returnType.isMarkedNullable) NullableDynamicPropertyDelegate(dynamicLookupRoutine, owner, property.name) else NonNullDynamicPropertyDelegate(dynamicLookupRoutine, owner, property.name) { target.toString() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 09:50:04 UTC 2024 - 2.8K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/AbstractDevelocityInputIgnoringServiceIntegrationTest.groovy
println "buildscript.property = \${propertyProvider.get()}" task check {} """ when: succeeds("check", "-Dproperty=value") then: outputContains("backgroundJob.property = value") outputContains("buildscript.property = value") configurationCache.assertStateStored() when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 29 16:27:53 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/PropertyStateExtensions.kt
package org.gradle.kotlin.dsl import org.gradle.api.provider.Property import kotlin.reflect.KProperty /** * Property delegate for [Property] instances. * * Example: `val someProperty by somePropertyState` */ operator fun <T> Property<T>.getValue(receiver: Any?, property: KProperty<*>): T = get() /** * Property delegate for [Property] instances. * * Example: `var someProperty by somePropertyState`
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensions.kt
property: KProperty<*> ) = ExistingDomainObjectDelegate.of( delegateProvider.named(property.name, type) ) /** * Provides a [TaskProvider] delegate for the task of the given type named after the property after configuring it with the given action. */ operator fun <U : Task> ExistingDomainObjectDelegateProviderWithTypeAndAction<out TaskContainer, U>.provideDelegate( receiver: Any?, property: KProperty<*>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 19 22:09:44 UTC 2024 - 9.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy
then: property.type == String.class } def "picks the best matching typed setter"() { when: def property = writeableProperty(JavaTestSubject, "myProperty3", Arrays.asList("foo", "bar").class) then: property.type == Collection.class when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ConfigurableFileCollectionExtensions.kt
import org.gradle.api.file.FileCollection import kotlin.reflect.KProperty /** * Property delegate for [ConfigurableFileCollection] instances. * * Example: `val aFileCollection by project.files()` */ operator fun ConfigurableFileCollection.getValue(receiver: Any?, property: KProperty<*>): ConfigurableFileCollection = this /** * Property delegate for [ConfigurableFileCollection] instances. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectContainerExtensions.kt
} operator fun provideDelegate(thisRef: Any?, property: KProperty<*>) = ExistingDomainObjectDelegate.of( when (configuration) { null -> container.create(property.name) else -> container.create(property.name, configuration) } ) } /** * Provides a property delegate that creates elements of the given [type]. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 19 22:09:44 UTC 2024 - 15.6K bytes - Viewed (0) -
analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/localDelegatedProperty.kt
// MODULE: context // FILE: context.kt import kotlin.reflect.KProperty class Delegate(private var value: String) { operator fun getValue(thisRef: Any?, property: KProperty<*>): String { return value } operator fun setValue(thisRef: Any?, property: KProperty<*>, value: String) { this.value = value } } fun test() { var x by Delegate("a") <caret_context>x } // MODULE: main
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jan 30 11:41:26 UTC 2024 - 541 bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/PropertyExtractor.kt
.filter { property -> (includeMemberFilter.shouldIncludeMember(property) || kClass.primaryConstructor?.parameters.orEmpty().any { it.name == property.name && it.type == property.returnType }) && property.visibility == KVisibility.PUBLIC && propertyNamePredicate(property.name) }.map { property -> kPropertyInformation(property) } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:01 UTC 2024 - 6.7K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt
} interface Dsl { val property: Property<String> } @Test fun `can serialize Java lambda with Gradle model`() { val stored = newInstance<Dsl>().apply { property.set("42") } val loaded = valueCarriedBy(roundtripOf(isolatedActionLambdaWith(stored))) assertThat( loaded.property.get(), equalTo("42") ) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 6.4K bytes - Viewed (0)