Class RobolectricInternals
java.lang.Object
org.robolectric.internal.bytecode.RobolectricInternals
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
classInitializing
(Class clazz) static Throwable
cleanStackTrace
(Throwable exception) static MethodHandle
findShadowMethodHandle
(Class<?> theClass, String name, MethodType methodType, boolean isStatic, boolean isNative) static ClassLoader
static MethodHandle
getShadowCreator
(Class<?> caller) static ShadowInvalidator
static Object
static void
performStaticInitialization
(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
-