Class Interceptor
- java.lang.Object
-
- org.robolectric.internal.bytecode.Interceptor
-
public abstract class Interceptor extends java.lang.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 java.lang.invoke.MethodHandlegetMethodHandle(java.lang.String methodName, java.lang.invoke.MethodType type)MethodRef[]getMethodRefs()abstract Function<java.lang.Object,java.lang.Object>handle(MethodSignature methodSignature)protected static Function<java.lang.Object,java.lang.Object>returnDefaultValue(MethodSignature methodSignature)
-
-
-
Constructor Detail
-
Interceptor
public Interceptor(MethodRef... methodRefs)
-
-
Method Detail
-
getMethodRefs
public MethodRef[] getMethodRefs()
-
handle
public abstract Function<java.lang.Object,java.lang.Object> handle(MethodSignature methodSignature)
-
getMethodHandle
public abstract java.lang.invoke.MethodHandle getMethodHandle(java.lang.String methodName, java.lang.invoke.MethodType type) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException- Throws:
java.lang.NoSuchMethodExceptionjava.lang.IllegalAccessException
-
returnDefaultValue
@Nonnull protected static Function<java.lang.Object,java.lang.Object> returnDefaultValue(MethodSignature methodSignature)
-
-