public final class ParameterTypes extends Object
The following is an example of proper usage of the classes in this package:
// Equivalent to call 'new Person()' Person p =constructor().in(Person.class).newInstance(); // Equivalent to call 'new Person("Yoda")' Person p =constructor().withParameterTypes(String.class).in(Person.class).newInstance("Yoda");
| Modifier and Type | Method and Description |
|---|---|
<T> Invoker<T> |
in(Class<T> target)
Creates a new constructor invoker.
|
Copyright © 2007–2016. All rights reserved.