r01f.reflection.fluent
Class ConstructorParameterTypes

java.lang.Object
  extended by 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");
 


Field Summary
private  java.lang.Class<?>[] _parameterTypes
           
 
Constructor Summary
private ConstructorParameterTypes(java.lang.Class<?>[] parameterTypes)
           
 
Method Summary
<T> ConstructorInvoker<T>
in(java.lang.Class<T> target)
          Creates a new constructor invoker.
(package private) static ConstructorParameterTypes newParameterTypes(java.lang.Class<?>[] parameterTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_parameterTypes

private final java.lang.Class<?>[] _parameterTypes
Constructor Detail

ConstructorParameterTypes

private ConstructorParameterTypes(java.lang.Class<?>[] parameterTypes)
Method Detail

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.