|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.javelot.functionalj.reflect.helper.impl.ReflectFinderImpl
public class ReflectFinderImpl
Implementation of a way to find Methods and
Constructors.
Finding methods by name
This implementation searches methods by name in the following manner, in order of
priority. For example, searching for "name" will look for:
name"getName"setName"isName"
| Constructor Summary | |
|---|---|
ReflectFinderImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectFinderImpl()
| Method Detail |
|---|
public Constructor findConstructor(Class p_class,
Class[] p_types)
throws NoSuchMethodException
ReflectFinder
findConstructor in interface ReflectFinderp_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)
ReflectFinder
findConstructors in interface ReflectFinderp_class - the class from which to find the constructors.
public Method findInstanceMethod(Class p_class,
String p_name,
Class[] p_types)
throws NoSuchMethodException
ReflectFinder
findInstanceMethod in interface ReflectFinderp_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
ReflectFinder
findInstanceMethods in interface ReflectFinderp_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
ReflectFinder
findStaticMethod in interface ReflectFinderp_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
ReflectFinder
findStaticMethods in interface ReflectFinderp_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 | ||||||||