cz.cuni.amis.utils
Class ClassUtils

java.lang.Object
  extended by cz.cuni.amis.utils.ClassUtils

public class ClassUtils
extends java.lang.Object


Constructor Summary
ClassUtils()
           
 
Method Summary
static java.util.List<java.lang.reflect.Field> getAllFields(java.lang.Class cls, boolean includeStatic)
           
static java.lang.String getMethodSignature(java.lang.reflect.Method method)
           
static java.util.Collection<java.lang.Class> getSubclasses(java.lang.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 java.util.Collection<java.lang.Class> getSubclasses(java.lang.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 java.util.List<java.lang.reflect.Field> getAllFields(java.lang.Class cls,
                                                                   boolean includeStatic)

getMethodSignature

public static java.lang.String getMethodSignature(java.lang.reflect.Method method)