See: Description
Class | Description |
---|---|
Invoker<T> |
Understands the invocation of a constructor via Java Reflection.
|
ParameterTypes |
Understands the parameter types for the constructor to invoke.
|
TargetType |
Understands the type of object that the constructor will create.
|
Provides a "fluent" API for constructor invocation via the Java Reflection API.
Note: Classes in this package are not intended to be used directly. To use them, you need to use the
class
.
org.fest.reflect.core.Reflection
Here are some examples:
// import staticorg.fest.reflect.core.Reflection
.*; // 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");
Copyright © 2007–2016. All rights reserved.