Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for openScope (0.15 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/BiProvider.java

            return String.format("and(%s, %s)", left, right);
        }
    
        @Override
        public boolean calculatePresence(ValueConsumer consumer) {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                if (!left.calculatePresence(consumer) || !right.calculatePresence(consumer)) {
                    return false;
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/OrElseProvider.java

        @Override
        public ValueProducer getProducer() {
            try (EvaluationContext.ScopeContext context = openScope()) {
                return new OrElseValueProducer(context, left, right);
            }
        }
    
        @Override
        public boolean calculatePresence(ValueConsumer consumer) {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return left.calculatePresence(consumer) || right.calculatePresence(consumer);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:42 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/FlatMapProvider.java

            try (EvaluationContext.ScopeContext context = openScope()) {
                return backingProvider(context, consumer).calculatePresence(consumer);
            }
        }
    
        @Override
        protected Value<? extends S> calculateOwnValue(ValueConsumer consumer) {
            try (EvaluationContext.ScopeContext context = openScope()) {
                Value<? extends T> value = provider.calculateValue(consumer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/OrElseFixedValueProvider.java

        public ValueProducer getProducer() {
            try (EvaluationContext.ScopeContext context = openScope()) {
                return new OrElseValueProducer(context, provider);
            }
        }
    
        @Override
        public ExecutionTimeValue<? extends T> calculateExecutionTimeValue() {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                ExecutionTimeValue<? extends T> value = provider.calculateExecutionTimeValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/FilteringProvider.java

        @Override
        public ValueProducer getProducer() {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return provider.getProducer();
            }
        }
    
        @Override
        public ExecutionTimeValue<? extends T> calculateExecutionTimeValue() {
            try (EvaluationContext.ScopeContext context = openScope()) {
                ExecutionTimeValue<? extends T> value = provider.calculateExecutionTimeValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/TransformBackedProvider.java

        @Override
        public ValueProducer getProducer() {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return provider.getProducer();
            }
        }
    
        @Override
        public ExecutionTimeValue<? extends OUT> calculateExecutionTimeValue() {
            try (EvaluationContext.ScopeContext context = openScope()) {
                ExecutionTimeValue<? extends IN> value = provider.calculateExecutionTimeValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MappingProvider.java

            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return provider.calculatePresence(consumer);
            }
        }
    
        @Override
        public ExecutionTimeValue<? extends OUT> calculateExecutionTimeValue() {
            try (EvaluationContext.ScopeContext context = openScope()) {
                ExecutionTimeValue<? extends IN> value = provider.calculateExecutionTimeValue();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProvider.java

                }
            }
            return null;
        }
    
        @Override
        protected Value<? extends T> calculateOwnValue(ValueConsumer consumer) {
            try (EvaluationContext.ScopeContext ignored = openScope()) {
                return Value.ofNullable(value.call());
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultProperty.java

            //  Without the safety net of the EvaluationContext, it can cause hard-to-debug exceptions.
            try (EvaluationContext.ScopeContext context = openScope()) {
                return getSupplier(context);
            }
        }
    
        public DefaultProperty<T> provider(Provider<? extends T> provider) {
            set(provider);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractMinimalProvider.java

        }
    
        /**
         * Marks this provider as being evaluated until the returned scope is closed.
         *
         * @return the scope
         */
        protected EvaluationContext.ScopeContext openScope() {
            return EvaluationContext.current().open(this);
        }
    
        /**
         * An implementation for the toString method that is never called if the current provider is being evaluated.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top