Class Interceptor
java.lang.Object
org.robolectric.internal.bytecode.Interceptor
- Direct Known Subclasses:
AndroidInterceptors.CleanerInterceptor
,AndroidInterceptors.FileDescriptorInterceptor
,AndroidInterceptors.LinkedHashMapEldestInterceptor
,AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor
,AndroidInterceptors.NoOpInterceptor
,AndroidInterceptors.SocketInterceptor
,AndroidInterceptors.SystemArrayCopyInterceptor
,AndroidInterceptors.SystemLogInterceptor
,AndroidInterceptors.SystemTimeInterceptor
public abstract class Interceptor extends Object
-
Constructor Summary
Constructors Constructor Description Interceptor(MethodRef... methodRefs)
-
Method Summary
Modifier and Type Method Description abstract MethodHandle
getMethodHandle(String methodName, MethodType type)
MethodRef[]
getMethodRefs()
abstract Function<Object,Object>
handle(MethodSignature methodSignature)
protected static Function<Object,Object>
returnDefaultValue(MethodSignature methodSignature)
-
Constructor Details
-
Method Details
-
getMethodRefs
-
handle
-
getMethodHandle
public abstract MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException -
returnDefaultValue
@Nonnull protected static Function<Object,Object> returnDefaultValue(MethodSignature methodSignature)
-