Package org.robolectric.internal
Interface IShadow
- All Known Implementing Classes:
ShadowImpl
public interface IShadow
-
Method Summary
Modifier and Type Method Description void
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)
String
directMethodName(String className, String methodName)
<T> T
extract(Object instance)
<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
-
directInitialize
-