|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.interceptors.lang.ClassHelper
public class ClassHelper
Methods which should have been in Class.
Constructor Summary | |
---|---|
ClassHelper()
|
Method Summary | |
---|---|
static java.lang.reflect.Method[] |
getAllMethods(java.lang.Class<?> cls)
Returns all public, private and package protected methods including inherited ones. |
static java.util.Map<java.lang.String,java.util.List<java.lang.reflect.Method>> |
getAllMethodsMap(java.lang.Class<?> cls)
Returns all public, private and package protected methods including inherited ones in a map indexed by name. |
static java.lang.reflect.Method |
getMethod(java.lang.Class<?> cls,
java.lang.String methodName)
Returns the method with the specified method name. |
static java.lang.reflect.Method |
getMethod(java.lang.Class<?> cls,
java.lang.String methodName,
java.lang.Class<?>... params)
Returns the method with the specified method name and parameters. |
static java.lang.reflect.Method[] |
getMethods(java.lang.Class<?> klass,
java.lang.Class<?> returnType,
java.lang.Class<?>... paramTypes)
Returns all (public,private, package, protected) methods belonging to the klass and its superclasses whose params match the paramTypes
and whose return type is returnType |
static boolean |
isOverridden(java.lang.Class<?> icptr,
java.lang.reflect.Method method)
|
static boolean |
isOverridden(java.lang.reflect.Method method,
java.lang.reflect.Method... methods)
Checks whether the method is overriden by any of the methods
*in the passed collection of methods *. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassHelper()
Method Detail |
---|
public static java.lang.reflect.Method[] getAllMethods(java.lang.Class<?> cls)
cls
-
public static java.lang.reflect.Method getMethod(java.lang.Class<?> cls, java.lang.String methodName) throws java.lang.NoSuchMethodException
methodName
-
java.lang.NoSuchMethodException
public static java.lang.reflect.Method getMethod(java.lang.Class<?> cls, java.lang.String methodName, java.lang.Class<?>... params) throws java.lang.NoSuchMethodException
cls
- methodName
- params
-
java.lang.NoSuchMethodException
public static java.util.Map<java.lang.String,java.util.List<java.lang.reflect.Method>> getAllMethodsMap(java.lang.Class<?> cls)
cls
-
public static boolean isOverridden(java.lang.Class<?> icptr, java.lang.reflect.Method method)
public static java.lang.reflect.Method[] getMethods(java.lang.Class<?> klass, java.lang.Class<?> returnType, java.lang.Class<?>... paramTypes)
klass
and its superclasses whose params match the paramTypes
and whose return type is returnType
klass
- paramTypes
-
public static boolean isOverridden(java.lang.reflect.Method method, java.lang.reflect.Method... methods)
method
is overriden by any of the methods
*in the passed collection of methods
*. Returns true if the method
is overriden by any of the passed methods, else returns false.
method
- methods
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |