Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,513 for property2 (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/ManagedFactories.java

                }
                // TODO - should preserve the property type (which may be different to the provider type)
                ProviderInternal<S> provider = Cast.uncheckedNonnullCast(state);
                return type.cast(propertyOf(provider.getType(), provider));
            }
    
            <V> Property<V> propertyOf(Class<V> type, Provider<V> value) {
                return propertyFactory.property(type).value(value);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/RuntimePropertyResolver.kt

        private
        fun kotlinPropertyGetter(property: KProperty<*>) =
            DeclarativeRuntimePropertyGetter { property.call(it) }
    
        private
        fun kotlinPropertySetter(property: KMutableProperty<*>) =
            DeclarativeRuntimePropertySetter { receiver, value -> property.setter.call(receiver, value) }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 17:34:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/InputTrackingState.kt

            --inputTrackingDisabledCounterForThread
        }
    }
    
    
    private
    operator fun <T> ThreadLocal<T>.getValue(thisRef: Any?, property: KProperty<*>) = get()
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/ThreadLocalDelegate.kt

    import java.util.concurrent.ConcurrentHashMap
    import kotlin.reflect.KProperty
    
    
    internal class ThreadLocalValue<V : Any>(private val init: () -> V) {
        private val map = ConcurrentHashMap<Long, V>()
    
        @Suppress("NOTHING_TO_INLINE")
        inline operator fun getValue(thisRef: Any?, property: KProperty<*>): V =
            map.computeIfAbsent(Thread.currentThread().id) {
                init()
            }
    }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Sep 15 09:32:30 UTC 2021
    - 766 bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/ManagedProperty.java

     *
     * <p>The managed property represents a property that is able to serve all its declaring view methods. For example, if the view
     * types declaring the struct only specify the property via a getter, then the managed property will be read-only. However, if
     * even one of the view types declare a setter for the property, it will be a read-write property. </p>
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/lifetime/KaLifetimeOwnerField.kt

    @JvmInline
    public value class KaLifetimeOwnerField<T>(public val value: T) : ReadOnlyProperty<KaLifetimeOwner, T> {
        public override fun getValue(thisRef: KaLifetimeOwner, property: KProperty<*>): T {
            return thisRef.withValidityAssertion { value }
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 870 bytes
    - Viewed (0)
Back to top