Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 229 for isGetter (0.68 sec)

  1. 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)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/ProtocolToModelAdapter.java

                this.next = next;
            }
    
            @Override
            public void invoke(MethodInvocation method) throws Throwable {
                if (method.isGetter()) {
                    if (properties.containsKey(method.getName())) {
                        method.setResult(properties.get(method.getName()));
                        return;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 04:42:54 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/PropertyAccessorTypeTest.groovy

            PropertyAccessorType.fromName('isidore') == PropertyAccessorType.IS_GETTER
            PropertyAccessorType.of(DeviantBean.class.getMethod("isidore")) == PropertyAccessorType.IS_GETTER
            PropertyAccessorType.fromName('settings') == PropertyAccessorType.SETTER
            PropertyAccessorType.of(DeviantBean.class.getMethod("settings", String)) == PropertyAccessorType.SETTER
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/PropertyAccessorType.java

     *
     * Generally follows the JavaBean conventions, with 2 exceptions: is methods can return `Boolean` (in addition to `boolean`) and setter methods can return non-void values.
     *
     * This is essentially a superset of the conventions supported by Java, Groovy and Kotlin.
     */
    public enum PropertyAccessorType {
        IS_GETTER(2) {
            @Override
            public Class<?> propertyTypeFor(Method method) {
                return method.getReturnType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolInfoProvider.kt

        private fun getJvmName(property: FirProperty, isSetter: Boolean): Name {
            if (property.backingField?.symbol?.hasAnnotation(JvmStandardClassIds.Annotations.JvmField, analysisSession.useSiteSession) == true) {
                return property.name
            }
            return Name.identifier(getJvmNameAsString(property, isSetter))
        }
    
        private fun getJvmNameAsString(property: FirProperty, isSetter: Boolean): String {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java

    import static org.gradle.internal.reflect.PropertyAccessorType.GET_GETTER;
    import static org.gradle.internal.reflect.PropertyAccessorType.IS_GETTER;
    import static org.gradle.internal.reflect.PropertyAccessorType.SETTER;
    import static org.gradle.internal.reflect.PropertyAccessorType.hasGetter;
    import static org.gradle.internal.reflect.PropertyAccessorType.hasSetter;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirPropertySetterSymbol.kt

        override val firSymbol: FirPropertyAccessorSymbol,
        override val analysisSession: KaFirSession,
    ) : KaPropertySetterSymbol(), KaFirSymbol<FirPropertyAccessorSymbol> {
    
        init {
            require(firSymbol.isSetter)
        }
    
        override val psi: PsiElement? by cached { firSymbol.findPsi() }
    
        override val isDefault: Boolean get() = withValidityAssertion { firSymbol.fir is FirDefaultPropertyAccessor }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/ClassInspector.java

                if (accessorType == PropertyAccessorType.GET_GETTER || accessorType == PropertyAccessorType.IS_GETTER) {
                    String propertyName = accessorType.propertyNameFor(method);
                    classDetails.property(propertyName).addGetter(method);
                } else if (accessorType == PropertyAccessorType.SETTER) {
                    String propertyName = accessorType.propertyNameFor(method);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

            WeaklyTypeReferencingMethod<?, ?> setter = property.getAccessor(SETTER);
            if (setter != null && property.getSchema() instanceof ScalarValueSchema) {
                // TODO - should we support this?
                // Adds a void $propName(Object value) method that simply delegates to the converting setter method
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
  10. testing/architecture-test/src/test/java/org/gradle/architecture/test/ProviderMigrationArchitectureTest.java

            return input.getOwner().getAllMethods().stream()
                .filter(method -> PropertyAccessorType.fromName(method.getName()) == PropertyAccessorType.SETTER)
                .anyMatch(method -> PropertyAccessorType.SETTER.propertyNameFor(method.getName()).equals(propertyNameFromGetter));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top