Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 357 for constructors (0.15 sec)

  1. guava-tests/test/com/google/common/reflect/InvokableTest.java

        public final void publicFinalMethod() {}
    
        void notAnnotatedMethod() {}
    
        static Invokable<A, A> constructor() throws Exception {
          Constructor<A> constructor = A.class.getDeclaredConstructor(Object.class);
          Invokable<A, A> invokable = Invokable.from(constructor);
          assertEquals(constructor.getName(), invokable.getName());
          assertEquals(A.class, invokable.getDeclaringClass());
          return invokable;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularization.java

         * It may however contain more than one entry if module hierarchy was detected,
         * in which case there is one key per sub-directory.
         *
         * <p>This map may contain null values if the constructor was invoked with {@code resolve}
         * parameter set to false. This is more efficient when only the module existence needs to
         * be tested, and module descriptors are not needed.</p>
         *
         * @see #getModuleNames()
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/tasks/internal/ValidationProblemSerialization.java

                try {
                    Constructor<Throwable> constructor;
                    if (message == null && cause == null) {
                        constructor = (Constructor<Throwable>) typeToken.getRawType().getDeclaredConstructor();
                        return constructor.newInstance();
                    } else if (message == null) {
                        constructor = (Constructor<Throwable>) typeToken.getRawType()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java

                .addJavadoc(interceptorClassJavadoc(requests))
                .addModifiers(Modifier.PUBLIC, Modifier.STATIC);
    
            MethodSpec constructor = MethodSpec.constructorBuilder().addModifiers(Modifier.PUBLIC).addStatement("super($L)", scopes).build();
            generatedClass.addMethod(constructor);
    
            SignatureTree signatureTree = signatureTreeFromRequests(requests);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/service_injection.adoc

    ====
    
    == Constructor injection
    
    There are 2 ways that an object can receive the services that it needs. The first option is to add the service as a parameter of the class constructor.
    The constructor must be annotated with the `javax.inject.Inject` annotation.
    Gradle uses the declared type of each constructor parameter to determine the services that the object requires.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. analysis/analysis-api/testData/components/compilerFacility/compilation/classKinds.ir.txt

              ENUM_CONSTRUCTOR_CALL 'private constructor <init> () [primary] declared in <root>.Direction'
          ENUM_ENTRY name:SOUTH
            init: EXPRESSION_BODY
              ENUM_CONSTRUCTOR_CALL 'private constructor <init> () [primary] declared in <root>.Direction'
          ENUM_ENTRY name:WEST
            init: EXPRESSION_BODY
              ENUM_CONSTRUCTOR_CALL 'private constructor <init> () [primary] declared in <root>.Direction'
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Apr 04 09:35:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.td

          return %arg0
        }
        ```
      }];
    
      let constructor = "TFDevice::CreateResourceOpLiftingPass()";
    }
    
    def ResourceOpLiftingForMainFunctionPass :
        Pass<"tf-resource-op-lifting-for-main-function", "ModuleOp"> {
      let summary = "Lifting resource operations out of control flow statements "
        "for the main function";
      let constructor = "TFDevice::CreateResourceOpLiftingForMainFunctionPass()";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 18:52:57 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

        }
    
        def "can construct a custom task with constructor arguments"() {
            given:
            buildFile << CUSTOM_TASK_WITH_CONSTRUCTOR_ARGS
            buildFile << "tasks.create('myTask', CustomTask, 'hello', 42)"
    
            when:
            run 'myTask'
    
            then:
            outputContains("hello 42")
        }
    
        def "can construct a custom task with constructor arguments as #description via Map"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGLoggingOutputCaptureIntegrationTest.groovy

                public class FooTest {
                    static { System.out.println("static out"); System.err.println("static err"); }
    
                    public FooTest() {
                        System.out.println("constructor out"); System.err.println("constructor err");
                    }
    
                    @BeforeClass public static void beforeClass() {
                        System.out.println("beforeClass out"); System.err.println("beforeClass err");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:51:39 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. platforms/software/antlr/src/main/java/org/gradle/api/plugins/antlr/internal/AntlrExecuter.java

                    if (args == null) {
                        return JavaReflectionUtil.newInstance(toolClass);
                    } else {
                        Constructor<?> constructor = toolClass.getConstructor(String[].class);
                        return constructor.newInstance(new Object[]{args});
                    }
                }catch(ClassNotFoundException cnf){
                    throw cnf;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 9.8K bytes
    - Viewed (0)
Back to top