|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jagatoo.util.classes.ClassUtil
public class ClassUtil
The ClassUtil
provides utility methods to deal with classes.
Constructor Summary | |
---|---|
ClassUtil()
|
Method Summary | |
---|---|
static java.lang.reflect.Method |
findMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
Gets the method from the given class without exceptions and also searches super classes. |
static java.lang.reflect.Method |
getPublicMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
Gets the public method from the given class without exceptions. |
static java.lang.Boolean |
overridesMethod(java.lang.Class<?> baseClazz,
java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
Checks, whether the given Class 'clazz' overrides the given method in the Class 'baseClazz'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassUtil()
Method Detail |
---|
public static java.lang.reflect.Method getPublicMethod(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
clazz
- methodName
- parameterTypes
-
public static java.lang.reflect.Method findMethod(java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
clazz
- methodName
- parameterTypes
-
public static java.lang.Boolean overridesMethod(java.lang.Class<?> baseClazz, java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
baseClazz
- the Class declaring the base methodclazz
- the sub class possibly overriding the methodmethodName
- the name of the methodparameterTypes
- the parameters of the method
true
, if the class overrides the given method, false
if not, null, if the method doesn't exist or another error occurrs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |