|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoptsimple.internal.Reflection
public final class Reflection
Helper methods for reflection.
| Method Summary | ||
|---|---|---|
static
|
convertWith(ValueConverter<V> converter,
String raw)
|
|
static
|
findConverter(Class<V> clazz)
Finds an appropriate value converter for the given class. |
|
static
|
instantiate(Constructor<T> constructor,
Object... args)
Invokes the given constructor with the given arguments. |
|
static Object |
invoke(Method method,
Object... args)
Invokes the given static method with the given arguments. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V> ValueConverter<V> findConverter(Class<V> clazz)
V - a constraint on the class object to introspectclazz - class to introspect on
public static <T> T instantiate(Constructor<T> constructor,
Object... args)
T - constraint on the type of the objects yielded by the constructorconstructor - constructor to invokeargs - arguments to hand to the constructor
ReflectionException - in lieu of the gaggle of reflection-related exceptions
public static Object invoke(Method method,
Object... args)
method - method to invokeargs - arguments to hand to the method
ReflectionException - in lieu of the gaggle of reflection-related exceptions
public static <V> V convertWith(ValueConverter<V> converter,
String raw)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||