r01f.reflection.fluent
Class ConstructorParameterTypes
java.lang.Object
r01f.reflection.fluent.ConstructorParameterTypes
public final class ConstructorParameterTypes
- extends java.lang.Object
Parameter types for the constructor to invoke.
Usage example:
// Equivalent to call 'new MyObj()'
MyObj p = Reflection.constructor().in(MyObj.class).newInstance();
// Equivalent to call 'new MyObj("myStrParam")'
Person p = Reflection.constructor().withParameterTypes(String.class).in(MyObj.class).newInstance("myStrParam");
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_parameterTypes
private final java.lang.Class<?>[] _parameterTypes
ConstructorParameterTypes
private ConstructorParameterTypes(java.lang.Class<?>[] parameterTypes)
newParameterTypes
static ConstructorParameterTypes newParameterTypes(java.lang.Class<?>[] parameterTypes)
in
public <T> ConstructorInvoker<T> in(java.lang.Class<T> target)
- Creates a new constructor invoker.
- Type Parameters:
T - the generic type of the class containing the constructor to invoke.- Parameters:
target - the the type of object that the constructor invoker will create.
- Returns:
- the created constructor invoker.