|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.MethodIndex
public class MethodIndex
Uses reflections to look-up methods on a class and will cache lookups for faster subsequent access.
Method Summary | |
---|---|
java.lang.reflect.Method |
findMethod(java.lang.String name,
java.lang.Class[] parms)
Searches for a method matching the specified criteria or returns a previously cached version. |
static MethodIndex |
getMethodIndex(java.lang.Class type)
Returns a new or previously cached MethodIndex for the specified type. |
java.lang.reflect.Method |
getPropertyAccessor(java.lang.String name)
Searches for a property accessor for the spefified property name. |
java.lang.reflect.Method |
getPropertyMutator(java.lang.String name)
Returns the "set" method of the specified property. |
java.lang.reflect.Method |
getPropertyMutator(java.lang.String name,
java.lang.Class type)
Returns the "set" method of the specified property and type. |
java.lang.Class |
getPropertyType(java.lang.String name)
Returns the type of the specified property. |
static void |
releaseMethodIndex(java.lang.Class c)
Releases any cached data associated with the specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MethodIndex getMethodIndex(java.lang.Class type)
public static void releaseMethodIndex(java.lang.Class c)
public java.lang.reflect.Method getPropertyAccessor(java.lang.String name)
public java.lang.Class getPropertyType(java.lang.String name)
public java.lang.reflect.Method getPropertyMutator(java.lang.String name)
public java.lang.reflect.Method getPropertyMutator(java.lang.String name, java.lang.Class type)
public java.lang.reflect.Method findMethod(java.lang.String name, java.lang.Class[] parms)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |