All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fest.reflect.constructor.package.html Maven / Gradle / Ivy








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 {@link org.fest.reflect.core.Reflection org.fest.reflect.core.Reflection}.

Here are some examples:

   // import static {@link org.fest.reflect.core.Reflection org.fest.reflect.core.Reflection}.*;

   // Equivalent to call 'new Person()'
   Person p = {@link org.fest.reflect.core.Reflection#constructor() constructor}().{@link org.fest.reflect.constructor.TargetType#in in}(Person.class).{@link org.fest.reflect.constructor.Invoker#newInstance(Object...) newInstance}();
   
   // Equivalent to call 'new Person("Yoda")'
   Person p = {@link org.fest.reflect.core.Reflection#constructor() constructor}().{@link org.fest.reflect.constructor.TargetType#withParameterTypes(Class...) withParameterTypes}(String.class).{@link org.fest.reflect.constructor.ParameterTypes#in(Class) in}(Person.class).{@link org.fest.reflect.constructor.Invoker#newInstance(Object...) newInstance}("Yoda");





© 2015 - 2024 Weber Informatics LLC | Privacy Policy