Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 229 for isSetter (0.39 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/MethodOptionElement.java

                PropertySetter setter = mutateUsingReturnValue(method);
                return AbstractOptionElement.of(optionName, option, setter, optionValueNotationParserFactory);
            }
            if (HasMultipleValues.class.isAssignableFrom(method.getReturnType())) {
                assertCanUseMethodReturnType(optionName, method);
                PropertySetter setter = mutateUsingReturnValue(method);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 11 11:28:20 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/Managed.java

     * <p>
     * Managed types declare their structure as properties, via getter and setter methods.
     * Getter and setter methods are expected to conform to the well-known Java Bean naming conventions.
     * A read/write “name” property would be expressed via the following methods:
     * <pre>
     * void setName(String name);
     * String getName();
     * </pre>
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/SingleValueOptionElement.java

        private final PropertySetter setter;
        private final NotationParser<CharSequence, ?> notationParser;
    
        public SingleValueOptionElement(String optionName, Option option, Class<?> optionType, PropertySetter setter, OptionValueNotationParserFactory notationParserFactory) {
            super(optionName, option, String.class, setter.getDeclaringClass());
            this.setter = setter;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 2K bytes
    - Viewed (0)
  4. test/typeparam/settable.go

    	"strconv"
    )
    
    // Various implementations of fromStrings().
    
    type Setter[B any] interface {
    	Set(string)
    	*B
    }
    
    // Takes two type parameters where PT = *T
    func fromStrings1[T any, PT Setter[T]](s []string) []T {
    	result := make([]T, len(s))
    	for i, v := range s {
    		// The type of &result[i] is *T which is in the type list
    		// of Setter, so we can convert it to PT.
    		p := PT(&result[i])
    		// PT has a Set method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:48:58 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/psiBased/KtFe10PsiKotlinPropertySymbol.kt

            }
    
        override val setter: KaPropertySetterSymbol?
            get() = withValidityAssertion {
                if (!psi.isVar) {
                    return null
                }
    
                val setter = psi.setter ?: return KaFe10PsiDefaultPropertySetterSymbol(psi, analysisContext)
                return KaFe10PsiPropertySetterSymbol(setter, analysisContext)
            }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java

                    return method;
                }
                if (iser.equals(methodName) && PropertyAccessorType.of(method) == PropertyAccessorType.IS_GETTER) {
                    return method;
                }
            }
            return null;
        }
    
        /**
         * Locates the property with the given name as a writable property. Searches only public properties.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  7. test/typeparam/issue48838.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	check[string]()
    }
    
    func check[T any]() {
    	var result setter[T]
    	switch result.(type) {
    	case fooA[T]:
    	case fooB[T]:
    	}
    }
    
    type setter[T any] interface {
    	Set(T)
    }
    
    type fooA[T any] struct{}
    
    func (fooA[T]) Set(T) {}
    
    type fooB[T any] struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 467 bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/classpath/CompositeCallInterceptionTest.groovy

            "normal setter"       | "call site" | "setTestString(String)"                       | { it.testString = "value" }          | false
            "boolean setter"      | "call site" | "setTestFlag(boolean)"                        | { it.testFlag = true }               | false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 11:38:52 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/binding/DefaultStructBindingsStoreTest.groovy

        }
    
        def "fails when abstract property has only setter"() {
            when:
            extract(TypeWithAbstractWriteOnlyProperty)
            then:
            def ex = thrown InvalidManagedTypeException
            ex.message == """Type ${fullyQualifiedNameOf(TypeWithAbstractWriteOnlyProperty)} is not a valid managed type:
    - Property 'z' is not valid: it must both have an abstract getter and a setter"""
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/deprecationFromLibrary.kt

        @get:Deprecated("Deprecated getter")
        @set:Deprecated("Deprecated setter")
        var deprecatedProperty: Int = 0
            get() = field
            set(value) {
                field = value
            }
    
        @Deprecated("Deprecated function")
        fun deprecatedFunction() {
    
        }
    
        @get:Deprecated("Deprecated getter")
        @set:Deprecated("Deprecated setter")
        var deprecatedAccessors: Int = 1
            get() = field
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 06 16:13:09 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top