Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 63 for ModelNode (1.47 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskContainerFactory.java

                            .build()
                    );
    
                    ModelNode modelNode = modelRegistry.atStateOrLater(TaskContainerInternal.MODEL_PATH, ModelNode.State.Created);
    
                    // TODO LD use something more stable than a cast here
                    MutableModelNode mutableModelNode = (MutableModelNode) modelNode;
    
                    // Add tasks created through rules to the actual task container
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 09:54:40 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelMaps.java

            Cast.uncheckedCast(ModelType.of(ChildNodeInitializerStrategy.class));
    
        public static <T> MutableModelNode addModelMapNode(MutableModelNode modelNode, ModelType<T> elementModelType, String name) {
            modelNode.addLink(
                ModelRegistrations.of(modelNode.getPath().child(name))
                    .action(ModelActionRole.Create, NODE_INITIALIZER_REGISTRY_MODEL_REFERENCE, new BiAction<MutableModelNode, NodeInitializerRegistry>() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/MutableModelNode.java

         */
        void setTarget(ModelNode target);
    
        /**
         * Ensure that the views are available, with default values applied.
         */
        void ensureUsable();
    
        void ensureAtLeast(ModelNode.State state);
    
        boolean isAtLeast(ModelNode.State state);
    
        void setHidden(boolean hidden);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelRegistry.java

         * @param path the path for the node
         * @param state the desired node state
         * @return the node at the desired state
         */
        ModelNode atStateOrLater(ModelPath path, ModelNode.State state);
        <T> T atStateOrLater(ModelPath path, ModelType<T> type, ModelNode.State state);
    
        ModelNode.State state(ModelPath path);
    
        void remove(ModelPath path);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/UnmanagedModelProjection.java

        @Override
        protected ModelView<M> toView(MutableModelNode modelNode, ModelRuleDescriptor ruleDescriptor, boolean writable) {
            M instance = Cast.uncheckedCast(modelNode.getPrivateData());
            return InstanceModelView.of(modelNode.getPath(), getType(), instance);
        }
    
        @Override
        public Optional<String> getValueDescription(MutableModelNode modelNode) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ScalarCollectionModelView.java

        protected final ModelType<C> type;
        protected final MutableModelNode modelNode;
        protected final boolean overwritable;
        protected final DefaultModelViewState state;
    
        public ScalarCollectionModelView(ModelPath path, ModelType<C> type, ModelType<E> elementType, MutableModelNode modelNode, ModelRuleDescriptor descriptor, boolean overwritable, boolean mutable) {
            this.path = path;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/SpecializedModelMapProjection.java

                return null;
            }
        }
    
        private ModelView<P> toView(MutableModelNode modelNode, ModelRuleDescriptor ruleDescriptor, boolean mutable) {
            ChildNodeInitializerStrategy<? super E> creatorStrategy = creatorStrategyAccessor.getStrategy(modelNode);
            DefaultModelViewState state = new DefaultModelViewState(modelNode.getPath(), publicType, ruleDescriptor, mutable, !mutable);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/SpecializedMapNodeInitializer.java

                        public void execute(MutableModelNode modelNode) {
                            ChildNodeInitializerStrategyAccessor<E> strategyAccessor = ChildNodeInitializerStrategyAccessors.fromPrivateData();
                            Class<? extends T> implementationType = schema.getImplementationType().asSubclass(schema.getType().getConcreteClass());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/LanguageSourceSetIntegrationTest.groovy

                lss(CustomSourceSet)
            }
            """
    
            when:
            succeeds "model"
    
            then:
            def modelNode = ModelReportOutput.from(output).modelNode
            modelNode.lss.@creator[0] == "lss(CustomSourceSet) @ build.gradle line 13, column 13"
            modelNode.lss.@type[0] == "CustomSourceSet"
        }
    
        def "can create a LSS as property of a managed type"() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  10. platforms/software/platform-base/src/main/java/org/gradle/platform/base/component/BaseComponentSpec.java

        private final MutableModelNode sources;
    
        public BaseComponentSpec() {
            MutableModelNode modelNode = getInfo().modelNode;
            binaries = ModelMaps.addModelMapNode(modelNode, BINARY_SPEC_MODEL_TYPE, "binaries");
            sources = ModelMaps.addModelMapNode(modelNode, LANGUAGE_SOURCE_SET_MODEL_TYPE, "sources");
        }
    
        @Override
        public ModelMap<LanguageSourceSet> getSources() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top