| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectclassUtils.reflection.MethodList
public class MethodList
methodList is a container and processor of methods.
| Constructor Summary | |
|---|---|
| MethodList() | |
| MethodList(java.lang.Class c) | |
| Method Summary | |
|---|---|
|  void | add(java.lang.reflect.Method m) | 
|  void | add(java.lang.reflect.Method[] m) | 
|  boolean | containedBy(java.lang.reflect.Method m) | 
|  java.lang.reflect.Method | elementAt(int i) | 
| static boolean | equals(java.lang.reflect.Method m1,
       java.lang.reflect.Method m2)determine if two methods are equal. | 
|  java.lang.reflect.Method[] | filter(java.lang.reflect.Method[] m)Return all the methods in the array that are not contained in the method list. | 
|  java.lang.reflect.Method[] | getAllPublicMethods() | 
|  java.lang.reflect.Method[] | getAllPublicStaticMethods() | 
|  java.lang.reflect.Method[] | getFilterList(classUtils.reflection.MethodFilter mf) | 
|  java.lang.reflect.Method[] | getMainMethods()Get a list of all methods that might be considered a main method | 
|  java.lang.reflect.Method[] | getMethods()return the internally held data as an array of methods; | 
| static java.lang.reflect.Method[] | getMethodsWithNArgs(java.lang.reflect.Method[] m,
                    int n) | 
|  java.lang.reflect.Method[] | getNonStringWriteMethods() | 
|  java.lang.reflect.Method[] | getNumericReadMethods() | 
| static java.lang.reflect.Method[] | getPrimMethods(MethodList ml) | 
| static java.lang.String | getPropertyName(java.lang.reflect.Method m) | 
|  java.lang.String[] | getPropertyNames() | 
| static java.lang.reflect.Method[] | getPublicMethods(java.lang.reflect.Method[] m) | 
|  java.lang.reflect.Method[] | getPublicReadMethods() | 
|  java.lang.reflect.Method | getReadMethod(java.lang.reflect.Method setter) | 
|  java.lang.reflect.Method[] | getReadMethods()Get a list of accessors | 
|  java.lang.reflect.Method[] | getReadMethods(java.lang.Class c)Get list of accessors with return type c; | 
|  java.lang.reflect.Method[] | getReadWriteMethods()Gets a list of methods that have both read and write access. | 
|  java.lang.Class[] | getReturnTypes() | 
|  java.lang.reflect.Method[] | getStringWriteMethods() | 
|  java.lang.reflect.Method | getWriteMethod(java.lang.reflect.Method accessor)Search the list of methods and get the mutator given the accessor. | 
|  java.lang.reflect.Method[] | getWriteMethods() | 
| static boolean | hasFileProperty(java.lang.reflect.Method m) | 
|  boolean | hasMainMethod() | 
| static boolean | hasPasswordProperty(java.lang.reflect.Method m) | 
| static boolean | hasPublicTransientProperty(java.lang.Class c,
                           java.lang.reflect.Method m) | 
|  boolean | hasReadMethod(java.lang.reflect.Method m)return true if input method has a corresponding read method. | 
|  int | index(java.lang.reflect.Method m1) | 
| static boolean | isAcceptableParamList(java.lang.reflect.Method m) | 
| static boolean | isMutator(java.lang.reflect.Method method) | 
| static void | main(java.lang.String[] args) | 
|  int | size()get number of methods in list | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MethodList(java.lang.Class c)
public MethodList()
| Method Detail | 
|---|
public boolean hasMainMethod()
public java.lang.reflect.Method[] getMainMethods()
public java.lang.reflect.Method getReadMethod(java.lang.reflect.Method setter)
setter - - given the setter 
getter.public static java.lang.reflect.Method[] getPrimMethods(MethodList ml)
public int index(java.lang.reflect.Method m1)
public static boolean isAcceptableParamList(java.lang.reflect.Method m)
public static java.lang.reflect.Method[] getMethodsWithNArgs(java.lang.reflect.Method[] m,
                                                             int n)
public java.lang.String[] getPropertyNames()
public static java.lang.String getPropertyName(java.lang.reflect.Method m)
public boolean hasReadMethod(java.lang.reflect.Method m)
m - The input method
public java.lang.reflect.Method[] getReadWriteMethods()
public java.lang.reflect.Method getWriteMethod(java.lang.reflect.Method accessor)
accessor - must be an accessor
public java.lang.reflect.Method[] getWriteMethods()
public static boolean isMutator(java.lang.reflect.Method method)
public java.lang.reflect.Method[] getAllPublicStaticMethods()
public java.lang.reflect.Method[] getAllPublicMethods()
public java.lang.reflect.Method[] getPublicReadMethods()
public static java.lang.reflect.Method[] getPublicMethods(java.lang.reflect.Method[] m)
public java.lang.reflect.Method[] getReadMethods(java.lang.Class c)
c - return type of the accessors
public java.lang.reflect.Method[] getNumericReadMethods()
public java.lang.reflect.Method[] getNonStringWriteMethods()
public java.lang.reflect.Method[] getStringWriteMethods()
public java.lang.reflect.Method[] getFilterList(classUtils.reflection.MethodFilter mf)
public java.lang.reflect.Method[] getReadMethods()
public boolean containedBy(java.lang.reflect.Method m)
public java.lang.Class[] getReturnTypes()
public java.lang.reflect.Method[] getMethods()
public java.lang.reflect.Method[] filter(java.lang.reflect.Method[] m)
public int size()
public java.lang.reflect.Method elementAt(int i)
public void add(java.lang.reflect.Method m)
public void add(java.lang.reflect.Method[] m)
public static boolean equals(java.lang.reflect.Method m1,
                             java.lang.reflect.Method m2)
public static boolean hasPublicTransientProperty(java.lang.Class c,
                                                 java.lang.reflect.Method m)
public static boolean hasFileProperty(java.lang.reflect.Method m)
public static boolean hasPasswordProperty(java.lang.reflect.Method m)
public static void main(java.lang.String[] args)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||