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 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)
-
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
-