org.sape.carbon.core.util.reflection
Class ClassUtil
java.lang.Object
|
+--org.sape.carbon.core.util.reflection.ClassUtil
- public class ClassUtil
- extends Object
Copyright 2003 Sapient
- Since:
- carbon 2.0
- Version:
- $Revision: 1.5 $($Author: dvoet $ / $Date: 2003/05/05 21:21:23 $)
- Author:
- Greg Hinkle, March 2003
Method Summary |
static Set |
getGeneralizations(Class classObject)
Builds an unordered set of all interface and object classes that
are generalizations of the provided class. |
static Class[] |
getSuperInterfaces(Class[] childInterfaces)
Retrieves all interfaces implemented by a specified interface
including all recursively extended interfaces and the classes supplied
int the parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassUtil
public ClassUtil()
getSuperInterfaces
public static Class[] getSuperInterfaces(Class[] childInterfaces)
- Retrieves all interfaces implemented by a specified interface
including all recursively extended interfaces and the classes supplied
int the parameter.
- Parameters:
childInterfaces
- a set of interfaces
- Returns:
- Class[] an array of interfaces that includes those specifed
in childInterfaces plus all of those interfaces' super interfaces
getGeneralizations
public static Set getGeneralizations(Class classObject)
- Builds an unordered set of all interface and object classes that
are generalizations of the provided class.
- Parameters:
classObject
- the class to find generalization of.
- Returns:
- a Set of class objects.
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.