Class ShadowImpl
- java.lang.Object
-
- org.robolectric.internal.bytecode.ShadowImpl
-
-
Constructor Summary
Constructors Constructor Description ShadowImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddirectInitialize(Class<?> clazz)<R,T>
RdirectlyOn(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>
RdirectlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues)StringdirectMethodName(String className, String methodName)<T> Textract(Object instance)<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)
-
-
-
Method Detail
-
newInstanceOf
public <T> T newInstanceOf(Class<T> clazz)
- Specified by:
newInstanceOfin interfaceIShadow
-
newInstance
public <T> T newInstance(Class<T> clazz, Class[] parameterTypes, Object[] params)
- Specified by:
newInstancein interfaceIShadow
-
directlyOn
@Deprecated public <T> T directlyOn(T shadowedObject, Class<T> clazz)
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
public String directMethodName(String className, String methodName)
- Specified by:
directMethodNamein interfaceIShadow
-
directInitialize
public void directInitialize(Class<?> clazz)
- Specified by:
directInitializein interfaceIShadow
-
-