Class ShadowImpl
java.lang.Object
org.robolectric.internal.bytecode.ShadowImpl
- All Implemented Interfaces:
IShadow
-
Constructor Summary
Constructors -
Method Summary
Modifier 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) directNativeMethodName(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
-
ShadowImpl
public ShadowImpl()
-
-
Method Details
-
extract
-
newInstanceOf
- Specified by:
newInstanceOfin interfaceIShadow
-
newInstance
- Specified by:
newInstancein interfaceIShadow
-
directlyOn
Returns a proxy object that invokes the original $$robo$$-prefixed methods forshadowedObject.- Specified by:
directlyOnin interfaceIShadow
-
directlyOn
public <R> R directlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) - Specified by:
directlyOnin interfaceIShadow
-
directlyOn
public <R,T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) - Specified by:
directlyOnin interfaceIShadow
-
directlyOn
public <R,T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter<?>... paramValues) - Specified by:
directlyOnin interfaceIShadow
-
invokeConstructor
public <R> R invokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter<?>... paramValues) - Specified by:
invokeConstructorin interfaceIShadow
-
directMethodName
- Specified by:
directMethodNamein interfaceIShadow
-
directNativeMethodName
- Specified by:
directNativeMethodNamein interfaceIShadow
-
directInitialize
- Specified by:
directInitializein interfaceIShadow
-