Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 229 for isSetter (0.17 sec)

  1. 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)
  2. testing/architecture-test/src/test/java/org/gradle/architecture/test/KotlinCompatibilityTest.java

            private final boolean isGetter;
    
            @Nullable
            public static Accessor from(JavaMethod method) {
                PropertyAccessorType propertyAccessorType = PropertyAccessorType.fromName(method.getName());
                if (propertyAccessorType != null && (KotlinCompatibilityTest.isGetter(method, propertyAccessorType) || KotlinCompatibilityTest.isSetter(method, propertyAccessorType))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/ToolingParameterProxy.java

                } else if (!setters.get(property).equals(getters.get(property))) {
                    throwParameterValidationError(clazz, String.format("Setter and getter for property %s have non corresponding types.", property));
                }
            }
        }
    
        private static boolean isGetter(Method method) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:27:26 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java

            String propertyGetterName = implementationExtra.getMethodName();
            boolean isSetter = implementation.getName().startsWith("access_set_");
            CallableReturnTypeInfo returnType = callableInfo.getReturnType();
            GradleLazyType upgradedPropertyType = implementationExtra.getPropertyType();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:11:23 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtSymbolByFirBuilder.kt

                return when {
                    firSymbol.isGetter -> buildGetterSymbol(firSymbol)
                    else -> buildSetterSymbol(firSymbol)
                }
            }
    
            fun buildGetterSymbol(firSymbol: FirPropertyAccessorSymbol): KaFirPropertyGetterSymbol {
                checkRequirementForBuildingSymbol<KaFirPropertyGetterSymbol>(firSymbol, firSymbol.isGetter)
                return symbolsCache.cache(firSymbol) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:43 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelPropertyExtractionContext.java

            PropertyAccessorExtractionContext isGetter = getAccessor(PropertyAccessorType.IS_GETTER);
            if (getGetter == null && isGetter == null) {
                return null;
            }
            Iterable<Method> getMethods = getGetter != null ? getGetter.getDeclaringMethods() : Collections.<Method>emptyList();
            Iterable<Method> isMethods = isGetter != null ? isGetter.getDeclaringMethods() : Collections.<Method>emptyList();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top