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 voidclassInitializing(Class clazz)static ThrowablecleanStackTrace(Throwable exception)static MethodHandlefindShadowMethodHandle(Class<?> theClass, String name, MethodType methodType, boolean isStatic)static ClassLoadergetClassLoader()static MethodHandlegetShadowCreator(Class<?> caller)static ShadowInvalidatorgetShadowInvalidator()static Objectinitializing(Object instance)static Objectintercept(String signature, Object instance, Object[] params, Class theClass)static ClassHandler.PlanmethodInvoked(String signature, boolean isStatic, Class<?> theClass)static voidperformStaticInitialization(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()
-
-