cz.cuni.amis.utils
Class ClassUtils

Package class diagram package ClassUtils
java.lang.Object
  extended by cz.cuni.amis.utils.ClassUtils

public class ClassUtils
extends Object


Constructor Summary
ClassUtils()
           
 
Method Summary
static List<Field> getAllFields(Class cls, boolean includeStatic)
           
static String getMethodSignature(Method method)
           
static Collection<Class> getSubclasses(Class cls)
          Returns all interfaces and super-classes the class 'cls' implements / inherit including 'cls' itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassUtils

public ClassUtils()
Method Detail

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 © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.