Constructor and Description |
---|
ShadowImpl() |
Modifier and Type | Method and Description |
---|---|
void |
directInitialize(Class<?> clazz) |
<R,T> R |
directlyOn(Class<T> clazz,
String methodName,
ReflectionHelpers.ClassParameter... paramValues) |
<R> R |
directlyOn(Object shadowedObject,
String clazzName,
String methodName,
ReflectionHelpers.ClassParameter... paramValues) |
<T> T |
directlyOn(T shadowedObject,
Class<T> clazz) |
<R,T> R |
directlyOn(T shadowedObject,
Class<T> clazz,
String methodName,
ReflectionHelpers.ClassParameter... paramValues) |
String |
directMethodName(String className,
String methodName) |
<T> T |
extract(Object instance) |
<R> R |
invokeConstructor(Class<? extends R> clazz,
R instance,
ReflectionHelpers.ClassParameter... paramValues) |
<T> T |
newInstance(Class<T> clazz,
Class[] parameterTypes,
Object[] params) |
<T> T |
newInstanceOf(Class<T> clazz) |
public <T> T newInstanceOf(Class<T> clazz)
newInstanceOf
in interface IShadow
public <T> T newInstance(Class<T> clazz, Class[] parameterTypes, Object[] params)
newInstance
in interface IShadow
public <T> T directlyOn(T shadowedObject, Class<T> clazz)
directlyOn
in interface IShadow
public <R> R directlyOn(Object shadowedObject, String clazzName, String methodName, ReflectionHelpers.ClassParameter... paramValues)
directlyOn
in interface IShadow
public <R,T> R directlyOn(T shadowedObject, Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues)
directlyOn
in interface IShadow
public <R,T> R directlyOn(Class<T> clazz, String methodName, ReflectionHelpers.ClassParameter... paramValues)
directlyOn
in interface IShadow
public <R> R invokeConstructor(Class<? extends R> clazz, R instance, ReflectionHelpers.ClassParameter... paramValues)
invokeConstructor
in interface IShadow
public String directMethodName(String className, String methodName)
directMethodName
in interface IShadow
public void directInitialize(Class<?> clazz)
directInitialize
in interface IShadow