All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.internal.IShadow Maven / Gradle / Ivy

There is a newer version: 4.14.1
Show newest version
package org.robolectric.internal;

import org.robolectric.util.ReflectionHelpers;

@SuppressWarnings("TypeParameterUnusedInFormals")
public interface IShadow {
   T extract(Object instance);

   T newInstanceOf(Class clazz);

   T newInstance(Class clazz, Class[] parameterTypes, Object[] params);

   T directlyOn(T shadowedObject, Class clazz);

  @SuppressWarnings("unchecked")
   R directlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter... paramValues);

   R directlyOn(T shadowedObject, Class clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues);

   R directlyOn(Class clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues);

   R invokeConstructor(Class clazz, R instance, ReflectionHelpers.ClassParameter... paramValues);

  String directMethodName(String methodName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy