public class RobolectricInternals extends Object
Constructor | Description |
---|---|
RobolectricInternals() |
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) |
public static void classInitializing(Class clazz) throws Exception
Exception
public static ClassHandler.Plan methodInvoked(String signature, boolean isStatic, Class<?> theClass)
public static MethodHandle getShadowCreator(Class<?> caller)
public static MethodHandle findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic) throws IllegalAccessException
IllegalAccessException
public static Object intercept(String signature, Object instance, Object[] params, Class theClass) throws Throwable
Throwable
public static void performStaticInitialization(Class<?> clazz) throws InvocationTargetException, IllegalAccessException
public static ShadowInvalidator getShadowInvalidator()
public static ClassLoader getClassLoader()