Class RobolectricInternals
- java.lang.Object
-
- org.robolectric.internal.bytecode.RobolectricInternals
-
public class RobolectricInternals extends Object
-
-
Constructor Summary
Constructors Constructor Description RobolectricInternals()
-
Method Summary
All Methods Static Methods Concrete Methods 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)
-
-
-
Method Detail
-
classInitializing
public static void classInitializing(Class clazz) throws Exception
- Throws:
Exception
-
methodInvoked
public static ClassHandler.Plan methodInvoked(String signature, boolean isStatic, Class<?> theClass)
-
getShadowCreator
public static MethodHandle getShadowCreator(Class<?> caller)
-
findShadowMethodHandle
public static MethodHandle findShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic) throws IllegalAccessException
- Throws:
IllegalAccessException
-
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
public static ShadowInvalidator getShadowInvalidator()
-
getClassLoader
public static ClassLoader getClassLoader()
-
-