cz.cuni.amis.utils
Class ClassUtils
java.lang.Object
cz.cuni.amis.utils.ClassUtils
public class ClassUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassUtils
public ClassUtils()
getSubclasses
public static Collection<Class> getSubclasses(Class cls)
- Returns all interfaces and super-classes the class 'cls' implements / inherit including
'cls' itself.
EXCEPT:Object
Don't fear of the performance implications - the results are cached so
every class is probed only once.
- Parameters:
cls
-
- Returns:
getAllFields
public static List<Field> getAllFields(Class cls,
boolean includeStatic)
getMethodSignature
public static String getMethodSignature(Method method)
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.