- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for InterceptScope (0.24 sec)
-
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/InterceptScope.java
private InterceptScope(CallType callType) { 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) {
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/test/groovy/org/gradle/internal/classpath/intercept/InterceptScopeTest.groovy
InterceptScope.readsOfPropertiesNamed("property1") | InterceptScope.readsOfPropertiesNamed("property2") InterceptScope.methodsNamed("method1") | InterceptScope.methodsNamed("method2") } def "method and property scopes with the same name are not equal"() { when: InterceptScope methodScope = InterceptScope.methodsNamed("name")
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/DefaultCallSiteDecorator.java
switch (callType) { case "invoke": maybeApplyInterceptor(ccs, caller, flags, interceptors.get(InterceptScope.methodsNamed(name))); break; case "getProperty": maybeApplyInterceptor(ccs, caller, flags, interceptors.get(InterceptScope.readsOfPropertiesNamed(name))); break; case "init":
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 13.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/AbstractCallInterceptor.java
throw new GradleException("Failed to set up an interceptor method", e); } } private final Set<InterceptScope> interceptScopes; protected AbstractCallInterceptor(InterceptScope... interceptScopes) { this.interceptScopes = ImmutableSet.copyOf(interceptScopes); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 14:02:30 UTC 2024 - 2.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/Instrumented.java
public SystemGetPropertiesInterceptor() { super(System.class, InterceptScope.readsOfPropertiesNamed("properties"), InterceptScope.methodsNamed("getProperties")); } @Override protected Object interceptSafe(Invocation invocation, String consumer) throws Throwable {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 34.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/GroovyDynamicDispatchInterceptors.java
import org.gradle.internal.classpath.intercept.CallInterceptorResolver; import org.gradle.internal.classpath.intercept.CallInterceptorResolver.ClosureCallInterceptorResolver; import org.gradle.internal.classpath.intercept.InterceptScope; import org.gradle.internal.instrumentation.api.annotations.CallableKind; import org.gradle.internal.instrumentation.api.annotations.InterceptJvmCalls;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 4.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/CallInterceptingMetaClass.java
if (matchedCaller != null) { InterceptScope scope = kind == INVOKE_METHOD ? InterceptScope.methodsNamed(name) : kind == GET_PROPERTY ? InterceptScope.readsOfPropertiesNamed(name) : kind == SET_PROPERTY ? InterceptScope.writesOfPropertiesNamed(name) : null; if (scope == null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:46:35 UTC 2024 - 21.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/CallInterceptorResolver.java
import static org.gradle.internal.classpath.intercept.CallInterceptorRegistry.getGroovyCallDecorator; @NonNullApi public interface CallInterceptorResolver { @Nullable CallInterceptor resolveCallInterceptor(InterceptScope scope); boolean isAwareOfCallSiteName(String name); @NonNullApi final class ClosureCallInterceptorResolver implements CallInterceptorResolver {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 24 13:33:59 UTC 2023 - 2.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/ClassBoundCallInterceptor.java
* as a scope already guarantees that the invocation would have the given class object as the receiver. */ public abstract class ClassBoundCallInterceptor extends AbstractCallInterceptor { private final Class<?> expectedReceiver; public ClassBoundCallInterceptor(Class<?> expectedReceiver, InterceptScope... scopes) { super(scopes);
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/CompositeCallInterceptor.java
public Object callOriginal() throws Throwable { return second.intercept(invocation, consumer); } }, consumer); } @Override public Set<InterceptScope> getInterceptScopes() { return Sets.union(first.getInterceptScopes(), second.getInterceptScopes()); } @Nullable @Override public Class<?> matchesProperty(Class<?> receiverClass) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 14:02:30 UTC 2024 - 3.2K bytes - Viewed (0)