|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to define a way to find Constructors and
Methods using reflection.
| Method Summary | |
Constructor |
findConstructor(Class p_class,
Class[] p_types)
Finds the constructor of the given class that accepts parameters of the specified types. |
Constructor[] |
findConstructors(Class p_class)
Finds the constructors of the given class. |
Method |
findInstanceMethod(Class p_class,
String p_name,
Class[] p_types)
Finds the named instance method of the given class that accepts parameters of the specified types. |
Method[] |
findInstanceMethods(Class p_class,
String p_name)
Finds the named instance methods of the given class. |
Method |
findStaticMethod(Class p_class,
String p_name,
Class[] p_types)
Finds the named static method of the given class that accepts parameters of the specified types. |
Method[] |
findStaticMethods(Class p_class,
String p_name)
Finds the named static methods of the given class. |
| Method Detail |
public Constructor findConstructor(Class p_class,
Class[] p_types)
throws NoSuchMethodException
p_class - the class from which to find the constructor.p_types - the types of the parameters accepted by the constructor.
NoSuchMethodException - thrown if no matching constructor was found.
public Constructor[] findConstructors(Class p_class)
throws NoSuchMethodException
p_class - the class from which to find the constructors.
NoSuchMethodException - thrown if no constructors were found.
public Method findInstanceMethod(Class p_class,
String p_name,
Class[] p_types)
throws NoSuchMethodException
p_class - the class from which to find the method.p_name - the name of the method.p_types - the types of the parameters accepted by the method.
NoSuchMethodException - thrown if no matching method was found.
public Method[] findInstanceMethods(Class p_class,
String p_name)
throws NoSuchMethodException
p_class - the class from which to find the methods.p_name - the name of the method.
NoSuchMethodException - thrown if no matching methods were found.
public Method findStaticMethod(Class p_class,
String p_name,
Class[] p_types)
throws NoSuchMethodException
p_class - the class from which to find the method.p_name - the name of the method.p_types - the types of the parameters accepted by the method.
NoSuchMethodException - thrown if no matching method was found.
public Method[] findStaticMethods(Class p_class,
String p_name)
throws NoSuchMethodException
p_class - the class from which to find the methods.p_name - the name of the method.
NoSuchMethodException - thrown if no matching methods were found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||