public class Shadow
extends java.lang.Object
Constructor and Description |
---|
Shadow() |
Modifier and Type | Method and Description |
---|---|
static <R,T> R |
directlyOn(java.lang.Class<T> clazz,
java.lang.String methodName,
ReflectionHelpers.ClassParameter... paramValues) |
static <R> R |
directlyOn(java.lang.Object shadowedObject,
java.lang.String clazzName,
java.lang.String methodName,
ReflectionHelpers.ClassParameter... paramValues) |
static <T> T |
directlyOn(T shadowedObject,
java.lang.Class<T> clazz) |
static <R,T> R |
directlyOn(T shadowedObject,
java.lang.Class<T> clazz,
java.lang.String methodName,
ReflectionHelpers.ClassParameter... paramValues) |
static java.lang.String |
directMethodName(java.lang.String className,
java.lang.String methodName) |
static <T> T |
extract(java.lang.Object instance)
Retrieve corresponding Shadow of the object.
|
static <R> R |
invokeConstructor(java.lang.Class<? extends R> clazz,
R instance,
ReflectionHelpers.ClassParameter... paramValues) |
static <T> T |
newInstance(java.lang.Class<T> clazz,
java.lang.Class[] parameterTypes,
java.lang.Object[] params) |
static <T> T |
newInstanceOf(java.lang.Class<T> clazz) |
static java.lang.Object |
newInstanceOf(java.lang.String className) |
public static <T> T extract(java.lang.Object instance)
Retrieve corresponding Shadow of the object.
public static <T> T newInstanceOf(java.lang.Class<T> clazz)
public static java.lang.Object newInstanceOf(java.lang.String className)
public static <T> T newInstance(java.lang.Class<T> clazz, java.lang.Class[] parameterTypes, java.lang.Object[] params)
public static <T> T directlyOn(T shadowedObject, java.lang.Class<T> clazz)
public static <R> R directlyOn(java.lang.Object shadowedObject, java.lang.String clazzName, java.lang.String methodName, ReflectionHelpers.ClassParameter... paramValues)
public static <R,T> R directlyOn(T shadowedObject, java.lang.Class<T> clazz, java.lang.String methodName, ReflectionHelpers.ClassParameter... paramValues)
public static <R,T> R directlyOn(java.lang.Class<T> clazz, java.lang.String methodName, ReflectionHelpers.ClassParameter... paramValues)
public static <R> R invokeConstructor(java.lang.Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter... paramValues)
public static java.lang.String directMethodName(java.lang.String className, java.lang.String methodName)