AndroidInterceptors.CleanerInterceptor
, AndroidInterceptors.LinkedHashMapEldestInterceptor
, AndroidInterceptors.LocaleAdjustLanguageCodeInterceptor
, AndroidInterceptors.NoOpInterceptor
, AndroidInterceptors.PolicyManagerMakeNewWindowInterceptor
, AndroidInterceptors.SystemArrayCopyInterceptor
, AndroidInterceptors.SystemLogInterceptor
, AndroidInterceptors.SystemTimeInterceptor
public abstract class Interceptor extends Object
Constructor | Description |
---|---|
Interceptor(MethodRef... methodRefs) |
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) |
public Interceptor(MethodRef... methodRefs)
public MethodRef[] getMethodRefs()
public abstract Function<Object,Object> handle(MethodSignature methodSignature)
public abstract MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException
@Nonnull protected static Function<Object,Object> returnDefaultValue(MethodSignature methodSignature)