Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getRulesWithInput (0.33 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RuleBindingsTest.groovy

            when:
            addNode(node1)
    
            then:
            bindings.getRulesWithInput(nodeAtState("a", ModelNode.State.Finalized)) as List == [rule]
            rule.inputBindings[0].boundTo == node1
    
            when:
            removeNode(node1)
    
            then:
            bindings.getRulesWithInput(nodeAtState("a", ModelNode.State.Finalized)) as List == []
            !rule.subjectBinding.bound
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/RuleBindings.java

            return rulesBySubject.get(target);
        }
    
        /**
         * Returns the set of rules with the given input.
         */
        public Collection<RuleBinder> getRulesWithInput(NodeAtState input) {
            return rulesByInput.get(input);
        }
    
        private static class Reference {
            final ModelBinding binding;
            final NodeAtStateIndex index;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/DefaultModelRegistry.java

                this.input = input;
            }
    
            @Override
            public boolean calculateDependencies(GoalGraph graph, Collection<ModelGoal> dependencies) {
                for (RuleBinder rule : ruleBindings.getRulesWithInput(input)) {
                    ModelBinding subjectBinding = rule.getSubjectBinding();
                    if (!subjectBinding.isBound()) {
                        // TODO - implement these cases
                        continue;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 45.7K bytes
    - Viewed (0)
Back to top