Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 229 for isLetter (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

     */
    private fun doesPropertyAccessorUseBody(propertyAccessor: KtPropertyAccessor, body: PsiElement): Boolean {
        return propertyAccessor.isSetter || (propertyAccessor.isGetter && body !is KtBlockExpression)
    }
    
    /**
     * Returns whether the function uses its body as an expression (i.e., the function uses the result value of the expression) or not.
     *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

                    if (property.setMethods.isEmpty()) {
                        Set<Class<?>> appliedTo = new HashSet<>();
                        for (Method setter : property.setters) {
                            if (appliedTo.add(setter.getParameterTypes()[0])) {
                                visitor.addSetMethod(property, setter);
                            }
                        }
                    } else if (extensibleTypeHandler.conventionProperties.contains(property)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
Back to top