static methods
to find a public method with specified name and parameter types
in specified class.
| Modifier and Type | Field and Description |
|---|---|
| private static final Cache | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private | MethodFinder(String
the name of method to find name, Class<?>[] the array of parameter types args)Creates method finder with specified array of parameter types. |
| Modifier and Type | Method and Description |
|---|---|
| public static Method | Returns: object that represents accessible methodobject that represents found method method)Finds method that is accessible from public class or interface through class hierarchy. |
| private static Method | Returns: object that represents accessible methodobject that represents found method method, Type generic type that is used to find accessible method generic)Finds method that accessible from specified class. |
| public static Method | Returns: object that represents found methodthe class that can have method type, String the name of method to find name, Class<?>... parameter types that is used to find method args)Finds public non-static method that is accessible from public class. |
| public static Method | Returns: object that represents found methodthe class that can have method type, String the name of method to find name, Class<?>... parameter types that is used to find method args)Finds public method (static or non-static) that is accessible from public class. |
| public static Method | Returns: object that represents found methodthe class that can have method type, String the name of method to find name, Class<?>... parameter types that is used to find method args)Finds public static method that is accessible from public class. |
| protected boolean | Returns: true if the method is valid,
false otherwisethe object that represents method method)Overrides com. Checks validness of the method. |
| CACHE | back to summary |
|---|---|
| private static final Cache<Signature, Method> CACHE | |
| name | back to summary |
|---|---|
| private final String name | |
| MethodFinder | back to summary |
|---|---|
| private MethodFinder(String name, Class<?>[] args) Creates method finder with specified array of parameter types. | |
| findAccessibleMethod | back to summary |
|---|---|
| public static Method findAccessibleMethod(Method method) throws NoSuchMethodException Finds method that is accessible from public class or interface through class hierarchy.
| |
| findAccessibleMethod | back to summary |
|---|---|
| private static Method findAccessibleMethod(Method method, Type generic) throws NoSuchMethodException Finds method that accessible from specified class.
| |
| findInstanceMethod | back to summary |
|---|---|
| public static Method findInstanceMethod(Class<?> type, String name, Class<?>... args) throws NoSuchMethodException Finds public non-static method that is accessible from public class.
| |
| findMethod | back to summary |
|---|---|
| public static Method findMethod(Class<?> type, String name, Class<?>... args) throws NoSuchMethodException Finds public method (static or non-static) that is accessible from public class.
| |
| findStaticMethod | back to summary |
|---|---|
| public static Method findStaticMethod(Class<?> type, String name, Class<?>... args) throws NoSuchMethodException Finds public static method that is accessible from public class.
| |
| isValid | back to summary |
|---|---|
| protected boolean isValid(Method method) Overrides com. Checks validness of the method. The valid method should be public and should have the specified name. | |