Package org.robolectric.internal
Interface IShadow
- All Known Implementing Classes:
ShadowImpl
public interface IShadow
-
Method Summary
Modifier and TypeMethodDescriptionvoid
directInitialize
(Class<?> clazz) <R,
T> R directlyOn
(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) <R> R
directlyOn
(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) <T> T
directlyOn
(T shadowedObject, Class<T> clazz) Deprecated.This is incompatible with JDK17+.<R,
T> R directlyOn
(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) directMethodName
(String className, String methodName) directNativeMethodName
(String className, String methodName) <T> T
<R> R
invokeConstructor
(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter<?>... paramValues) <T> T
newInstance
(Class<T> clazz, Class<?>[] parameterTypes, Object[] params) <T> T
newInstanceOf
(Class<T> clazz)
-
Method Details
-
extract
-
newInstanceOf
-
newInstance
-
directlyOn
Returns a proxy object that invokes the original $$robo$$-prefixed methods forshadowedObject
. -
directlyOn
<R> R directlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) -
directlyOn
<R,T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) -
directlyOn
<R,T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) -
invokeConstructor
<R> R invokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter<?>... paramValues) -
directMethodName
-
directNativeMethodName
-
directInitialize
-