Class ShadowImpl
java.lang.Object
org.robolectric.internal.bytecode.ShadowImpl
- All Implemented Interfaces:
- IShadow
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddirectInitialize(Class<?> clazz) <R,T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues) <R> RdirectlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter... paramValues) <T> TdirectlyOn(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) <T> T<R> RinvokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter... paramValues) <T> TnewInstance(Class<T> clazz, Class[] parameterTypes, Object[] params) <T> TnewInstanceOf(Class<T> clazz) 
- 
Constructor Details- 
ShadowImplpublic ShadowImpl()
 
- 
- 
Method Details- 
extract
- 
newInstanceOf- Specified by:
- newInstanceOfin interface- IShadow
 
- 
newInstance- Specified by:
- newInstancein interface- IShadow
 
- 
directlyOnReturns a proxy object that invokes the original $$robo$$-prefixed methods forshadowedObject.- Specified by:
- directlyOnin interface- IShadow
 
- 
directlyOnpublic <R> R directlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter... paramValues) - Specified by:
- directlyOnin interface- IShadow
 
- 
directlyOnpublic <R,T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues) - Specified by:
- directlyOnin interface- IShadow
 
- 
directlyOnpublic <R,T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues) - Specified by:
- directlyOnin interface- IShadow
 
- 
invokeConstructorpublic <R> R invokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter... paramValues) - Specified by:
- invokeConstructorin interface- IShadow
 
- 
directMethodName- Specified by:
- directMethodNamein interface- IShadow
 
- 
directInitialize- Specified by:
- directInitializein interface- IShadow
 
 
-