Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 237 for CONSTRUCTOR (0.32 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/timeout/IntegrationTestTimeoutExtension.java

            try {
                Constructor<?> constructor = timeout.onlyIf().getConstructors()[0];
                int paramCount = constructor.getParameterCount();
                Object[] param = new Object[paramCount];
                for (int i = 0; i < paramCount; i++) {
                    param[i] = this;
                }
                if (((Closure<Boolean>) constructor.newInstance(param)).call()) {
                    runnable.run();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/service-provider/src/main/java/org/gradle/internal/service/ServiceRegistration.java

         *
         * @param serviceType The service implementation to make visible.
         */
        void add(Class<?> serviceType);
    
        /**
         * Adds a service to this registry. The implementation class should have a single public constructor, and this constructor can take services to be injected as parameters.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/compilerPluginUsage.ir.txt

          $this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.CodeFragment
          CONSTRUCTOR visibility:public <> () returnType:<root>.CodeFragment [primary]
            BLOCK_BODY
              DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
          FUN name:run visibility:public modality:FINAL <> () returnType:kotlin.Unit
            EXPRESSION_BODY
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 19:18:28 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/providers/services/kotlin/build.gradle.kts

            myProperty.set("Hello, Gradle!")
            println(myProperty.get())
        }
    }
    // end::object-factory[]
    
    // tag::object-factory-inject[]
    abstract class MyObjectFactoryTask
    @Inject constructor(private var objectFactory: ObjectFactory) : DefaultTask() {
    
        @TaskAction
        fun doTaskAction() {
            val outputDirectory = objectFactory.directoryProperty()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/groovy/build.gradle

    abstract class GreetingTask extends DefaultTask {
        // tag::convention-callsites-from-constructor[]
        // setting convention from constructor
        @Input
        abstract Property<String> getGuest()
    
        GreetingTask() {
            guest.convention("person2")
        }
        // end::convention-callsites-from-constructor[]
    
        // tag::convention-callsites-from-declaration[]
        // setting convention from declaration
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 16:56:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_passes.td

        Option<"prefer_tf2xla_", "prefer-tf2xla", "bool",
            /*default=*/"false",
            "Prioritize tf2xla fallback legalization over MLIR legalization "
            "patterns">,
      ];
    
      let constructor = "mlir::mhlo::createLegalizeTFPass()";
      let dependentDialects = [
        "arith::ArithDialect",
        "chlo::ChloDialect",
        "func::FuncDialect",
        "mhlo::MhloDialect",
        "quant::QuantizationDialect",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/KtFe10TypeSystemCommonBackendContextForTypeMapping.kt

            require(this is SimpleType)
            val declaration = constructor.declarationDescriptor
            return declaration is FunctionClassDescriptor && declaration.functionTypeKind.isSuspendOrKSuspendFunction
        }
    
        override fun SimpleTypeMarker.isKClass(): Boolean {
            require(this is SimpleType)
            return constructor.declarationDescriptor == builtIns.kClass
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10TypeInfoProvider.kt

            val elementType = unwrappedType.constructor.builtIns.getArrayElementType(unwrappedType)
            return KotlinBuiltIns.isArrayOrPrimitiveArray(elementType)
        }
    
        /** Expanded by default */
        override fun fullyExpandedType(type: KaType): KaType = type
    
        private fun KotlinType.isDenotable(): Boolean {
            if (this is DefinitelyNotNullType) return false
            return constructor.isDenotable &&
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskFailureIntegrationTest.groovy

            failure.assertHasCause("Could not create task of type 'CustomTask'.")
            failure.assertHasCause("Unable to determine constructor argument #2: missing parameter of type int, or no service of type int")
        }
    
        def "fails to create custom task if all constructor arguments missing"() {
            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
            buildFile << "tasks.register('myTask', CustomTask)"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/AsmClassGeneratorUtils.java

        /**
         * Generates the signature for the given constructor, optionally adding a `name` parameter before all other parameters.
         */
        public static String signature(Constructor<?> constructor, boolean addNameParameter) {
            StringBuilder builder = new StringBuilder();
            visitFormalTypeParameters(constructor.getTypeParameters(), builder);
            visitConstructorParameters(constructor.getGenericParameterTypes(), addNameParameter, builder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:25 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top