Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for modelPath (0.24 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/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)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/RuleBindings.java

                }
            }
        }
    
        private class TypePredicateIndex {
            final Map<ModelPath, ScopeIndex> scopes = new LinkedHashMap<>();
    
            public void addNodeToScope(ModelPath path, ModelNodeInternal node) {
                scopeForPath(path).addNode(node);
            }
    
            public void removeNodeFromScope(ModelPath path, ModelNodeInternal node) {
                scopeForPath(path).removeNode(node);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/model/internal/fixture/ModelRegistryHelperExtension.java

        }
    
        @Nullable
        public static MutableModelNode node(DefaultModelRegistry modelRegistry, String path) {
            return modelRegistry.node(ModelPath.path(path));
        }
    
        public static <C> ModelRegistry registerInstance(ModelRegistry modelRegistry, String path, final C c) {
            return modelRegistry.register(unmanaged(registration(ModelPath.path(path)), c));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/RuleVisitor.java

            } else {
                String modelPath = argExpression.getText();
                if (modelPath.isEmpty()) {
                    error(argExpression, INVALID_ARGUMENT_LIST);
                    return;
                }
    
                try {
                    ModelPath.validatePath(modelPath);
                } catch (ModelPath.InvalidPathException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RuleBindingsTest.groovy

            def node3 = node("a.2", String)
            def node4 = node("b", Long)
            def rule1 = rule(Long, ModelNode.State.Mutated, ModelPath.path("a"))
            def rule2 = rule(String, ModelNode.State.Mutated, ModelPath.path("a"))
            def rule3 = rule(Integer, ModelNode.State.Mutated, ModelPath.path("a"))
            bindings.add(rule1)
            bindings.add(rule2)
            addNode(node1)
            addNode(node2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ModelRuleExtractor.java

                        }
                    }, target);
                }
            }
    
            protected ModelPath calculateTarget(MutableModelNode target) {
                return target.getPath();
            }
    
            private void mapInputs(List<ModelReference<?>> inputs, ModelPath targetPath) {
                for (int i = 0; i < inputs.size(); i++) {
                    ModelReference<?> input = inputs.get(i);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

            then:
            registry.realizeNode(ModelPath.path("strings")).promise.canBeViewedAs(new ModelType<List<String>>() {})
            registry.realizeNode(ModelPath.path("superStrings")).promise.canBeViewedAs(new ModelType<List<? super String>>() {})
            registry.realizeNode(ModelPath.path("extendsStrings")).promise.canBeViewedAs(new ModelType<List<? extends String>>() {})
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelMap.java

                return true;
            }
    
            @Override
            public void validateCanBindAction(MutableModelNode node, ModelAction action) {}
    
            @Override
            public void validateCanCreateElement(ModelPath path, ModelType<?> type) {}
        };
    
        private final ModelType<T> elementType;
        private final ModelRuleDescriptor sourceDescriptor;
        private final MutableModelNode modelNode;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 23K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/typeregistration/BaseInstanceFactoryTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.model.internal.typeregistration
    
    import org.gradle.model.Managed
    import org.gradle.model.internal.core.ModelPath
    import org.gradle.model.internal.core.MutableModelNode
    import org.gradle.model.internal.core.rule.describe.SimpleModelRuleDescriptor
    import org.gradle.model.internal.type.ModelType
    import spock.lang.Specification
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 15.7K bytes
    - Viewed (0)
Back to top