| java.lang.Object net.sf.hajdbc.util.reflect.Methods
Methods | final public class Methods (Code) | | author: Paul Ferraro |
Method Summary | |
public static Method | findMethod(Class> sourceClass, String name, Class>... types) Helper method for
Class.getMethod(StringClass) that returns null if the method does not exist. | public static Method | findMethod(String className, String name, Class>... types) Helper method for
Class.getMethod(StringClass) that returns null if the class or method does not exist. | public static Set<Method> | findMethods(Class> sourceClass, String... patterns) Returns a set of methods for the specified class whose names match the specified regular expression patterns. | public static Method | getMethod(Class> sourceClass, String name, Class>... types) Helper method for
Class.getMethod(StringClass) where method is known to exist. | public static Object | invoke(Method method, Object object, Object... parameters) Helper method for Method.invoke(Object, Object...) that performs the necessary exception handling. |
findMethod | public static Method findMethod(Class> sourceClass, String name, Class>... types)(Code) | | Helper method for
Class.getMethod(StringClass) that returns null if the method does not exist.
Parameters: sourceClass - the class from which to find methods Parameters: name - the method name Parameters: types - the parameter types the method with the specified name and parameter types, or null if the method does not exist |
findMethod | public static Method findMethod(String className, String name, Class>... types)(Code) | | Helper method for
Class.getMethod(StringClass) that returns null if the class or method does not exist.
Parameters: className - the name of the class containing the method Parameters: name - the method name Parameters: types - the parameter types the method with the specified name and parameter types, or null if the class or method does not exist |
findMethods | public static Set<Method> findMethods(Class> sourceClass, String... patterns)(Code) | | Returns a set of methods for the specified class whose names match the specified regular expression patterns.
Parameters: sourceClass - the class from which to find methods Parameters: patterns - regular expression patterns a set of methods |
getMethod | public static Method getMethod(Class> sourceClass, String name, Class>... types)(Code) | | Helper method for
Class.getMethod(StringClass) where method is known to exist.
Parameters: sourceClass - the class from which to find methods Parameters: name - the method name Parameters: types - the parameter types the method with the specified name and parameter types throws: IllegalArgumentException - if no such method exists |
invoke | public static Object invoke(Method method, Object object, Object... parameters) throws SQLException(Code) | | Helper method for Method.invoke(Object, Object...) that performs the necessary exception handling.
Parameters: method - a method to invoke Parameters: object - the object on which to invoke the given method Parameters: parameters - the method parameters the return value of the method invocation throws: SQLException - the target exception of the method invocation throws: IllegalArgumentException - if the the underlying method is inaccessible |
|
|