Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getAccessorType (0.15 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/ManagedPropertyMethodBinding.java

        public ModelType<?> getDeclaredPropertyType() {
            PropertyAccessorType accessorType = getAccessorType();
            assert accessorType != null;
            return ModelType.of(accessorType.genericPropertyTypeFor(getViewMethod().getMethod()));
        }
    
        @Override
        public String toString() {
            PropertyAccessorType accessorType = getAccessorType();
            assert accessorType != null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/StructMethodBinding.java

        /**
         * Returns the property accessor type of this method, or {@code null} if the method is not a property accessor.
         */
        @Nullable
        PropertyAccessorType getAccessorType();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/AbstractStructMethodBinding.java

            this.accessorType = accessorType;
        }
    
        @Override
        public WeaklyTypeReferencingMethod<?, ?> getViewMethod() {
            return viewMethod;
        }
    
        @Override
        public PropertyAccessorType getAccessorType() {
            return accessorType;
        }
    
        @Override
        public abstract String toString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/StructSchemaExtractionStrategySupport.java

        }
    
        private static ModelType<?> determinePropertyType(PropertyAccessorExtractionContext accessor) {
            return accessor == null ? null : ModelType.of(accessor.getAccessorType().genericPropertyTypeFor(accessor.getMostSpecificDeclaration()));
        }
    
        private static <P> ModelPropertyExtractionResult<P> createProperty(ModelType<P> propertyType, ModelPropertyExtractionContext propertyContext) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/main/java/org/gradle/platform/base/internal/VariantAspectExtractionStrategy.java

                for (PropertyAccessorExtractionContext accessor : propertyResult.getAccessors()) {
                    if (accessor.isAnnotationPresent(Variant.class)) {
                        if (accessor.getAccessorType() == PropertyAccessorType.SETTER) {
                            throw invalidProperty(extractionContext, property, "@Variant annotation is only allowed on getter methods");
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelPropertyExtractionContext.java

        }
    
        public boolean isWritable() {
            return hasSetter(accessors.keySet());
        }
    
        public void addAccessor(PropertyAccessorExtractionContext accessor) {
            PropertyAccessorType type = accessor.getAccessorType();
            // TODO:LPTR What happens when the property has multiple accessors in the same role but with different type?
            // if (accessors.containsKey(type)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/PropertyAccessorExtractionContext.java

                    }
                }
            }
            return Collections.unmodifiableMap(annotations);
        }
    
        public PropertyAccessorType getAccessorType() {
            return accessorType;
        }
    
        public Collection<Method> getDeclaringMethods() {
            return declaringMethods;
        }
    
        public Method getMostSpecificDeclaration() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

                if (methodBinding instanceof DirectMethodBinding) {
                    // TODO:LPTR What is with the "metaClass" property here?
                    boolean isGetterMethod = methodBinding.getAccessorType() == GET_GETTER
                        || methodBinding.getAccessorType() == IS_GETTER;
                    if (isGetterMethod
                        && !Modifier.isFinal(viewMethod.getModifiers())
                        && !viewMethod.getName().equals("getMetaClass")) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java

            Set<ModelType<?>> potentialPropertyTypes = new LinkedHashSet<>();
            for (StructMethodBinding binding : accessorBindings.values()) {
                if (binding.getAccessorType() == SETTER) {
                    continue;
                }
                ManagedPropertyMethodBinding propertyBinding = (ManagedPropertyMethodBinding) binding;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 29.7K bytes
    - Viewed (0)
Back to top