Class ShadowImpl
java.lang.Object
org.robolectric.internal.bytecode.ShadowImpl
- All Implemented Interfaces:
org.robolectric.internal.IShadow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddirectInitialize(Class<?> clazz) <R,T> R directlyOn(Class<T> clazz, String methodName, org.robolectric.util.ReflectionHelpers.ClassParameter... paramValues) <R> RdirectlyOn(Object shadowedObject, String clazzName, String methodName, org.robolectric.util.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, org.robolectric.util.ReflectionHelpers.ClassParameter... paramValues) directMethodName(String className, String methodName) <T> T<R> RinvokeConstructor(Class<? extends R> clazz, R instance, org.robolectric.util.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
- Specified by:
extractin interfaceorg.robolectric.internal.IShadow
-
newInstanceOf
- Specified by:
newInstanceOfin interfaceorg.robolectric.internal.IShadow
-
newInstance
- Specified by:
newInstancein interfaceorg.robolectric.internal.IShadow
-
directlyOn
Deprecated.This is incompatible with JDK17+. Use aReflectorinterface withDirect.Returns a proxy object that invokes the original $$robo$$-prefixed methods forshadowedObject.- Specified by:
directlyOnin interfaceorg.robolectric.internal.IShadow
-
directlyOn
public <R> R directlyOn(Object shadowedObject, String clazzName, String methodName, org.robolectric.util.ReflectionHelpers.ClassParameter... paramValues) - Specified by:
directlyOnin interfaceorg.robolectric.internal.IShadow
-
directlyOn
public <R,T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, org.robolectric.util.ReflectionHelpers.ClassParameter... paramValues) - Specified by:
directlyOnin interfaceorg.robolectric.internal.IShadow
-
directlyOn
public <R,T> R directlyOn(Class<T> clazz, String methodName, org.robolectric.util.ReflectionHelpers.ClassParameter... paramValues) - Specified by:
directlyOnin interfaceorg.robolectric.internal.IShadow
-
invokeConstructor
public <R> R invokeConstructor(Class<? extends R> clazz, R instance, org.robolectric.util.ReflectionHelpers.ClassParameter... paramValues) - Specified by:
invokeConstructorin interfaceorg.robolectric.internal.IShadow
-
directMethodName
- Specified by:
directMethodNamein interfaceorg.robolectric.internal.IShadow
-
directInitialize
- Specified by:
directInitializein interfaceorg.robolectric.internal.IShadow
-