- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 165 for constructorsOf (0.16 sec)
-
subprojects/core/src/test/groovy/org/gradle/internal/classpath/intercept/InterceptScopeTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 03 11:20:13 UTC 2022 - 2.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/ClassBoundCallInterceptor.java
* It only intercepts the calls where the receiver is the class of interest. * <p> * It is possible but not strictly necessary to use this interceptor to intercept constructors. * Due to the way constructor interception works, having an {@link InterceptScope#constructorsOf(Class) * as a scope already guarantees that the invocation would have the given class object as the receiver. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 2.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/InterceptScope.java
this.callType = callType; } /** * The returned scope includes calls to all constructors of class {@code constructorClass}. * * @param constructorClass the class whose constructors are to be intercepted * @return the scope object */ public static InterceptScope constructorsOf(Class<?> constructorClass) { return new ConstructorScope(constructorClass); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 14:02:30 UTC 2024 - 5.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/DefaultCallSiteDecorator.java
if (receiver instanceof Class) { CallInterceptor realConstructorInterceptor = interceptors.get(InterceptScope.constructorsOf((Class<?>) receiver)); if (realConstructorInterceptor != null) { return realConstructorInterceptor.intercept(invocation, consumer); } } return invocation.callOriginal(); } };
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 13.3K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java
return result.stream().collect(CodeBlock.joining("\n\n")); } private static CodeBlock constructorScopeArg(TypeName constructedType) { return CodeBlock.of("$1T.constructorsOf($2T.class)", INTERCEPTED_SCOPE_CLASS, constructedType); } private static CodeBlock namedCallableScopesArgs(String name, List<CallInterceptionRequest> 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) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/ParamsMatchingConstructorSelector.java
} List<? extends ClassGenerator.GeneratedConstructor<?>> constructors = generatedClass.getConstructors(); if (constructors.size() == 1) { return Cast.uncheckedCast(constructors.get(0)); } ClassGenerator.GeneratedConstructor<?> match = null; // NOTE: this relies on the constructors being in a predictable order
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 6.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/InjectUtil.java
List<ClassGenerator.GeneratedConstructor<T>> constructors = type.getConstructors(); if (constructors.size() == 1) { ClassGenerator.GeneratedConstructor<T> constructor = constructors.get(0); if (constructor.getParameterTypes().length == 0 && isPublicOrPackageScoped(type.getGeneratedClass(), constructor)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/reflect/DirectInstantiatorCacheTest.groovy
class DirectInstantiatorCacheTest extends Specification { @Shared def cache = new DirectInstantiator.ConstructorCache() @Unroll("constructor cache returns the same constructors as 'getConstructors' for #clazz") def "constructor cache returns the same constructors as 'getConstructors'"() { given: def constructor = null int i = 0 while (!constructor && ++i<50) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/InjectUtil.java
format(type) ) ); } final Constructor<?>[] constructors = type.getDeclaredConstructors(); if (constructors.length == 1) { Constructor<?> constructor = constructors[0]; if (isPublicOrPackageScoped(constructor)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 4K bytes - Viewed (0) -
platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/services/NativeServicesInitializationTest.groovy
e.message == "Cannot get an instance of NativeServices without first calling initialize()." } def "no public constructors on NativeServices" () { Constructor[] constructors = NativeServices.getConstructors() expect: constructors.size() == 0 } private static URL jar(Class clazz) { clazz.getProtectionDomain().getCodeSource().getLocation() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 08:51:56 UTC 2024 - 2.6K bytes - Viewed (0)