Interface IShadow


public interface IShadow
  • Method Details

    • extract

      <T> T extract(Object instance)
    • newInstanceOf

      <T> T newInstanceOf(Class<T> clazz)
    • newInstance

      <T> T newInstance(Class<T> clazz, Class<?>[] parameterTypes, Object[] params)
    • directlyOn

      @Deprecated <T> T directlyOn(T shadowedObject, Class<T> clazz)
      Deprecated.
      This is incompatible with JDK17+. Use a
      invalid reference
      org.robolectric.util.reflector.Reflector
      interface with
      invalid reference
      org.robolectric.util.reflector.Direct
      .
      Returns a proxy object that invokes the original $$robo$$-prefixed methods for shadowedObject.
    • 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

      String directMethodName(String className, String methodName)
    • directNativeMethodName

      String directNativeMethodName(String className, String methodName)
    • directInitialize

      void directInitialize(Class<?> clazz)