Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for ModelPath (0.17 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelPath.java

            if (o == null || getClass() != o.getClass()) {
                return false;
            }
    
            ModelPath modelPath = (ModelPath) o;
    
            return components.length == modelPath.components.length && path.equals(modelPath.path);
        }
    
        @Override
        public int hashCode() {
            return path.hashCode();
        }
    
        @Override
        public Iterator<String> iterator() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathValidationTest.groovy

            then:
            e = thrown(ModelPath.InvalidNameException)
            e.message =~ "contains illegal"
    
            when:
            ModelPath.validateName("Z9z")
            ModelPath.validateName("abc")
            ModelPath.validateName("aBC")
            ModelPath.validateName("a10")
            ModelPath.validateName("_")
            ModelPath.validateName("_a")
            ModelPath.validateName("__")
            ModelPath.validateName("a_Z")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelReference.java

        @Nullable
        private final ModelPath path;
        private final ModelType<T> type;
        @Nullable
        private final ModelPath scope;
        private final ModelNode.State state;
        @Nullable
        private final String description;
    
        private int hashCode;
    
        private ModelReference(@Nullable ModelPath path, ModelType<T> type, @Nullable ModelPath scope, @Nullable ModelNode.State state, @Nullable String description) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultRealizableTaskCollectionTest.groovy

        def "realizes a nodes link of a given type when task dependencies visited"() {
            given:
            ModelRegistryHelper registry = new ModelRegistryHelper()
            ModelPath path = ModelPath.path("tasks")
            registry.registerInstance("tasks", "foo tasks")
                .mutate {
                it.path "tasks" node {
                    it.addLinkInstance(taskPath, Mock(realizableType))
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 22 12:57:17 UTC 2020
    - 3.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/NonTransformedModelDslBacking.java

            this.modelPath = modelPath;
            this.modelRegistry = modelRegistry;
        }
    
        private NonTransformedModelDslBacking getChildPath(String name) {
            ModelPath path = modelPath == null ? ModelPath.path(name) : modelPath.child(name);
            return new NonTransformedModelDslBacking(executingDsl, path, modelRegistry);
        }
    
        private void registerConfigurationAction(final Closure<?> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelPathSuggestionProvider.java

                }
            }
        }
    
        @Override
        public List<ModelPath> transform(final ModelPath unavailable) {
            Iterable<Suggestion> suggestions = Iterables.transform(availablePaths, new Function<ModelPath, Suggestion>() {
                @Override
                public Suggestion apply(ModelPath available) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/TransformedModelDslBacking.java

         * Invoked by transformed DSL configuration rules
         */
        public void configure(String modelPathString, Closure<?> closure) {
            ModelPath modelPath = ModelPath.path(modelPathString);
            DeferredModelAction modelAction = ruleFactory.toAction(Object.class, closure);
            registerAction(modelPath, ModelType.UNTYPED, ModelActionRole.Mutate, modelAction);
        }
    
        /**
         * Invoked by transformed DSL creation rules
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathTest.groovy

            ModelPath.path("a.b").isDescendant(ModelPath.path("a.b.c"))
            ModelPath.path("a.b").isDescendant(ModelPath.path("a.b.c.d.e"))
            !ModelPath.path("a.b").isDescendant(ModelPath.path("a.a"))
            !ModelPath.path("a.b").isDescendant(ModelPath.path("a.a.b"))
            !ModelPath.path("a.b").isDescendant(ModelPath.path("a.b"))
            !ModelPath.path("a.b").isDescendant(ModelPath.path("a"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/DefaultModelRegistry.java

        @Override
        public <T> T realize(String path, ModelType<T> type) {
            return realize(ModelPath.path(path), type);
        }
    
        @Override
        public <T> T realize(ModelPath path, ModelType<T> type) {
            return toType(type, require(path), "get(ModelPath, ModelType)");
        }
    
        public ModelNode atState(ModelPath path, ModelNode.State state) {
            return atStateOrMaybeLater(path, state, false);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ManagedModelCreationRuleExtractor.java

        }
    
        @Override
        protected <R, S> ExtractedModelRule buildRule(ModelPath modelPath, MethodRuleDefinition<R, S> ruleDefinition) {
            ModelType<S> modelType = ruleDefinition.getSubjectReference().getType();
            final ModelSchema<S> modelSchema = getModelSchema(modelType, ruleDefinition);
            return new ExtractedManagedCreationRule<R, S>(modelPath, ruleDefinition, modelSchema);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top