| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<!-- |
| 6 |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 7 |
in compliance with the License. You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software distributed under the License |
| 12 |
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 13 |
or implied. See the License for the specific language governing permissions and limitations under |
| 14 |
the License. |
| 15 |
|
| 16 |
Copyright @2007-2009 the original author or authors. |
| 17 |
--> |
| 18 |
</head> |
| 19 |
<body bgcolor="white"> |
| 20 |
<p> |
| 21 |
Provides a "fluent" API for |
| 22 |
constructor invocation via the Java Reflection API. |
| 23 |
</p> |
| 24 |
<p> |
| 25 |
<strong>Note:</strong> Classes in this package are not intended to be used directly. To use them, you need to use the |
| 26 |
class <code>{@link org.fest.reflect.core.Reflection org.fest.reflect.core.Reflection}</code>. |
| 27 |
</p> |
| 28 |
<p> |
| 29 |
Here are some examples: |
| 30 |
<pre> |
| 31 |
// import static {@link org.fest.reflect.core.Reflection org.fest.reflect.core.Reflection}.*; |
| 32 |
|
| 33 |
// Equivalent to call 'new Person()' |
| 34 |
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}(); |
| 35 |
|
| 36 |
// Equivalent to call 'new Person("Yoda")' |
| 37 |
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"); |
| 38 |
</pre> |
| 39 |
</p> |
| 40 |
</body> |
| 41 |
</html> |