|
||||||||||
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[] |
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)
|
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()
|
java.lang.reflect.Method[] |
getReadWriteMethods()
|
java.lang.Class[] |
getReturnTypes()
|
java.lang.reflect.Method[] |
getWriteMethods()
|
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 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 static void main(java.lang.String[] args)
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[] getWriteMethods()
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()
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 hasPasswordProperty(java.lang.reflect.Method m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |