| java.lang.Object net.kildenpedersen.reflect.Reflector
Reflector | final public class Reflector (Code) | | author: Nils Kilden-Pedersen |
Method Summary | |
public static Constructor | getAccessibleConstructor(Class type, Class[] parmTypes) | public static Set | getAccessibleConstructors(Class type, int parmCount) Get a Set of accessible constructors with the given parameter count. | public static Field | getAccessibleField(Class type, String name) | public static Set | getAccessibleMemberMethods(Class type, String name, int parmCount) Return set of accessible member methods with the given name and parameter count. | public static Method | getAccessibleMethod(Class type, String name, Class[] parmTypes) | public static Method | getAccessibleReadProperty(Class target, String name) | public static Set | getAccessibleStaticMethods(Class type, String name, int parmCount) Return set of accessible static methods with the given name and parameter count. | public static Method | getAccessibleWriteProperty(Class target, String name) | public static String | getClassName(Class type) | public static Object | getIndexObject(Object collection, int index) Return object at the given index. | public static Object | getLeafValue(Object rootObject, String nodeTree) Get leaf value on a dot separated tree. | public static Class[] | getParameterTypes(Member member) Get the parameter types for the member. | public static int | getSize(Object collection) Get size of array or collection. | public static void | setLeafValue(Object rootObject, String nodeTree, Object value) Set leaf value on a dot separated tree. |
getAccessibleConstructor | public static Constructor getAccessibleConstructor(Class type, Class[] parmTypes)(Code) | | Parameters: type - Parameters: parmTypes - accessible constructor |
getAccessibleConstructors | public static Set getAccessibleConstructors(Class type, int parmCount)(Code) | | Get a Set of accessible constructors with the given parameter count.
Parameters: type - Parameters: parmCount - constructor array |
getAccessibleField | public static Field getAccessibleField(Class type, String name)(Code) | | Parameters: type - Parameters: name - field or null. |
getAccessibleMemberMethods | public static Set getAccessibleMemberMethods(Class type, String name, int parmCount)(Code) | | Return set of accessible member methods with the given name and parameter count.
Parameters: type - class type Parameters: name - method name Parameters: parmCount - parameter count Set of s |
getAccessibleMethod | public static Method getAccessibleMethod(Class type, String name, Class[] parmTypes)(Code) | | Parameters: type - Parameters: name - Parameters: parmTypes - accessible method |
getAccessibleReadProperty | public static Method getAccessibleReadProperty(Class target, String name)(Code) | | Parameters: target - Parameters: name - property name accessible read property |
getAccessibleStaticMethods | public static Set getAccessibleStaticMethods(Class type, String name, int parmCount)(Code) | | Return set of accessible static methods with the given name and parameter count.
Parameters: type - class type Parameters: name - method name Parameters: parmCount - parameter count Set of s |
getAccessibleWriteProperty | public static Method getAccessibleWriteProperty(Class target, String name)(Code) | | Parameters: target - target Parameters: name - property name accessible read property |
getClassName | public static String getClassName(Class type)(Code) | | Get class name, corrected for arrays
Parameters: type - class name string |
getIndexObject | public static Object getIndexObject(Object collection, int index)(Code) | | Return object at the given index.
Parameters: collection - Array or List of objects Parameters: index - Index value to return indexed value throws: IllegalArgumentException - if object is not array or collection |
getLeafValue | public static Object getLeafValue(Object rootObject, String nodeTree)(Code) | | Get leaf value on a dot separated tree.
Parameters: rootObject - Parameters: nodeTree - object value |
getParameterTypes | public static Class[] getParameterTypes(Member member)(Code) | | Get the parameter types for the member.
Parameters: member - array of parameter types |
getSize | public static int getSize(Object collection)(Code) | | Get size of array or collection.
Parameters: collection - Array or collection of objects size of collection |
setLeafValue | public static void setLeafValue(Object rootObject, String nodeTree, Object value)(Code) | | Set leaf value on a dot separated tree.
Parameters: rootObject - Root object Parameters: nodeTree - Node tree Parameters: value - Value to set |
|
|