Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for ModelNode (1.26 sec)

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

                .action(ModelActionRole.Create, new Action<MutableModelNode>() {
                    @Override
                    public void execute(MutableModelNode modelNode) {
                        T t = factory.transform(modelNode);
                        modelNode.setPrivateData(modelReference.getType(), t);
                    }
                })
                .withProjection(UnmanagedModelProjection.of(modelReference.getType()));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/DirectNodeNoInputsModelAction.java

            return new AbstractModelAction<T>(reference, descriptor, Collections.<ModelReference<?>>emptyList()) {
                @Override
                public void execute(MutableModelNode modelNode, List<ModelView<?>> inputs) {
                    action.execute(modelNode);
                }
            };
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelSet.java

            this.publicType = publicType;
            this.elementType = elementType;
            this.elementTypeReference = ModelReference.of(elementType);
            this.descriptor = descriptor;
            this.modelNode = modelNode;
            this.state = state;
            this.creatorStrategy = creatorStrategy;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ModelElementProjection.java

            super(MODEL_ELEMENT_MODEL_TYPE);
            this.publicType = publicType;
        }
    
        @Override
        protected ModelView<ModelElement> toView(final MutableModelNode modelNode, ModelRuleDescriptor ruleDescriptor, boolean writable) {
            return InstanceModelView.of(modelNode.getPath(), MODEL_ELEMENT_MODEL_TYPE, new ModelElement() {
                @Override
                public String toString() {
                    return getDisplayName();
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/DirectNodeInputUsingModelAction.java

                public void execute(MutableModelNode modelNode, List<ModelView<?>> inputs) {
                    action.execute(modelNode,
                        Cast.<I>uncheckedCast(inputs.get(0).getInstance()),
                        Cast.<J>uncheckedCast(inputs.get(1).getInstance())
                    );
                }
            };
        }
    
        @Override
        public void execute(MutableModelNode modelNode, T view, List<ModelView<?>> inputs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/OneOfTypeBinderCreationListener.java

            super(descriptor, predicate, writable);
            this.bindAction = bindAction;
        }
    
        @Override
        public boolean canBindInState(ModelNode.State state) {
            return state.isAtLeast(ModelNode.State.Discovered);
        }
    
        @Override
        public void doOnBind(ModelNodeInternal node) {
            boundTo = node;
            bindAction.execute(this);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/FactoryBasedStructNodeInitializer.java

        }
    
        @Override
        protected void initializePrivateData(MutableModelNode modelNode) {
            ModelType<T> delegateType = Cast.uncheckedCast(implementationInfo.getDelegateType());
            T instance = Cast.uncheckedCast(implementationInfo.create(modelNode));
            modelNode.setPrivateData(delegateType, instance);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/main/java/org/gradle/platform/base/component/internal/DefaultComponentSpec.java

            public final MutableModelNode modelNode;
            public final Class<?> publicType;
    
            private ComponentInfo(
                ComponentSpecIdentifier componentIdentifier,
                MutableModelNode modelNode,
                Class<?> publicType
            ) {
                this.componentIdentifier = componentIdentifier;
                this.modelNode = modelNode;
                this.publicType = publicType;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/NodeAtState.java

     */
    
    package org.gradle.model.internal.registry;
    
    import org.gradle.model.internal.core.ModelNode;
    import org.gradle.model.internal.core.ModelPath;
    
    class NodeAtState implements Comparable<NodeAtState> {
        public final ModelPath path;
        public final ModelNode.State state;
    
        public NodeAtState(ModelPath path, ModelNode.State state) {
            this.path = path;
            this.state = state;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/PathBinderCreationListener.java

            super(descriptor, predicate, writable);
            this.bindAction = bindAction;
        }
    
        @Override
        public boolean canBindInState(ModelNode.State state) {
            return predicate.getReference().isUntyped() || state.isAtLeast(ModelNode.State.Discovered);
        }
    
        @Override
        public void doOnBind(ModelNodeInternal node) {
            if (predicate.matches(node)) {
                boundTo = node;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top