Class Interceptor
- java.lang.Object
-
- org.robolectric.internal.bytecode.Interceptor
-
- Direct Known Subclasses:
AndroidInterceptors.CleanerInterceptor
,AndroidInterceptors.FileDescriptorInterceptor
,AndroidInterceptors.LinkedHashMapEldestInterceptor
,AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor
,AndroidInterceptors.NoOpInterceptor
,AndroidInterceptors.ReferenceRefersToInterceptor
,AndroidInterceptors.SocketInterceptor
,AndroidInterceptors.SystemArrayCopyInterceptor
,AndroidInterceptors.SystemLogInterceptor
,AndroidInterceptors.SystemTimeInterceptor
public abstract class Interceptor extends Object
-
-
Constructor Summary
Constructors Constructor Description Interceptor(MethodRef... methodRefs)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 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 Detail
-
Interceptor
public Interceptor(MethodRef... methodRefs)
-
-
Method Detail
-
getMethodRefs
public MethodRef[] getMethodRefs()
-
handle
public abstract Function<Object,Object> handle(MethodSignature methodSignature)
-
getMethodHandle
public abstract MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException
-
returnDefaultValue
@Nonnull protected static Function<Object,Object> returnDefaultValue(MethodSignature methodSignature)
-
-