Package org.robolectric.interceptors
Class AndroidInterceptors.ReferenceRefersToInterceptor
java.lang.Object
org.robolectric.internal.bytecode.Interceptor
org.robolectric.interceptors.AndroidInterceptors.ReferenceRefersToInterceptor
- Enclosing class:
- AndroidInterceptors
public static class AndroidInterceptors.ReferenceRefersToInterceptor extends Interceptor
AndroidInterceptor for Reference.refersTo which is not available until JDK 16.
-
Constructor Summary
Constructors Constructor Description ReferenceRefersToInterceptor()
-
Method Summary
Modifier and Type Method Description MethodHandle
getMethodHandle(String methodName, MethodType type)
Function<Object,Object>
handle(MethodSignature methodSignature)
Methods inherited from class org.robolectric.internal.bytecode.Interceptor
getMethodRefs, returnDefaultValue
-
Constructor Details
-
ReferenceRefersToInterceptor
public ReferenceRefersToInterceptor()
-
-
Method Details
-
handle
- Specified by:
handle
in classInterceptor
-
getMethodHandle
public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException- Specified by:
getMethodHandle
in classInterceptor
- Throws:
NoSuchMethodException
IllegalAccessException
-