Class RobolectricInternals
java.lang.Object
org.robolectric.internal.bytecode.RobolectricInternals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclassInitializing(Class clazz) static ThrowablecleanStackTrace(Throwable exception) static MethodHandlefindShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic, boolean isNative) static ClassLoaderstatic MethodHandlegetShadowCreator(Class<?> caller) static ShadowInvalidatorstatic Objectstatic voidperformStaticInitialization(Class<?> clazz)
-
Constructor Details
-
RobolectricInternals
public RobolectricInternals()
-
-
Method Details
-
classInitializing
- Throws:
Exception
-
getShadowCreator
-
findShadowMethodHandle
public static MethodHandle findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic, boolean isNative) throws IllegalAccessException - Throws:
IllegalAccessException
-
cleanStackTrace
-
intercept
public static Object intercept(String signature, Object instance, Object[] params, Class theClass) throws Throwable - Throws:
Throwable
-
performStaticInitialization
public static void performStaticInitialization(Class<?> clazz) throws InvocationTargetException, IllegalAccessException -
getShadowInvalidator
-
getClassLoader
-