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