Class RobolectricInternals
java.lang.Object
org.robolectric.internal.bytecode.RobolectricInternals
public class RobolectricInternals extends Object
-
Constructor Summary
Constructors Constructor Description RobolectricInternals()
-
Method Summary
Modifier and Type Method Description static void
classInitializing(Class clazz)
static Throwable
cleanStackTrace(Throwable exception)
static MethodHandle
findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic)
static ClassLoader
getClassLoader()
static MethodHandle
getShadowCreator(Class<?> caller)
static ShadowInvalidator
getShadowInvalidator()
static Object
initializing(Object instance)
static Object
intercept(String signature, Object instance, Object[] params, Class theClass)
static ClassHandler.Plan
methodInvoked(String signature, boolean isStatic, Class<?> theClass)
static void
performStaticInitialization(Class<?> clazz)
-
Constructor Details
-
RobolectricInternals
public RobolectricInternals()
-
-
Method Details
-
classInitializing
- Throws:
Exception
-
initializing
- Throws:
Exception
-
methodInvoked
public static ClassHandler.Plan methodInvoked(String signature, boolean isStatic, Class<?> theClass) -
getShadowCreator
-
findShadowMethodHandle
public static MethodHandle findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic) 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
-