- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ofStatic (0.11 sec)
-
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/JavaMethodTest.groovy
when: JavaMethod.ofStatic(myProperties.class, Void, "setStaticProperty", String.class).invokeStatic("foo") then: JavaMethod.ofStatic(myProperties.class, String, "getStaticProperty").invokeStatic() == "foo" } def "static methods are identifiable" () { expect: JavaMethod.ofStatic(myProperties.class, Void, "setStaticProperty", String.class).isStatic()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 3.4K bytes - Viewed (0) -
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesInitializationTest.groovy
] ClassLoader classLoader = new URLClassLoader(jars, null as ClassLoader) Class nativeServicesClass = classLoader.loadClass(NativeServices.getName()) JavaMethod nativeServicesGetInstance = JavaMethod.ofStatic(nativeServicesClass, nativeServicesClass, "getInstance") when: nativeServicesGetInstance.invokeStatic() then: def e = thrown(IllegalStateException)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 08:51:56 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/reflect/JavaMethod.java
} /** * Locates the given static method. Searches all methods, including private methods. */ public static <T, R> JavaMethod<T, R> ofStatic(Class<T> target, Class<R> returnType, String name, Class<?>... paramTypes) throws NoSuchMethodException { return new JavaMethod<T, R>(target, returnType, name, true, paramTypes); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 20 11:07:38 UTC 2023 - 5.4K bytes - Viewed (0)