| java.lang.Object com.metaboss.util.ReflectionUtils
ReflectionUtils | public class ReflectionUtils (Code) | | Set of useful utilites todo with java.lang.reflection capabilities
|
Method Summary | |
public static Class | getInnerClass(Class pEncapsulatingClass, String pInnerClassName) Parameters: pInnerClassName - local name of the class without package and encapsulating class name inner class or inner interface if there is one declared inside the given class. throws: ClassNotFoundException - if desired class has not been found. | public static boolean | isSubclass(Class pClassBeingTested, Class pPossibleSuperclass) | public static boolean | isSubinterface(Class pClassBeingTested, Class pPossibleSuperinterface) | public static boolean | isSubtype(Class pClassBeingTested, Class pPossibleSuperclass) This method uses reflection to find out whether the class being tested is of specified type (i.e. |
getInnerClass | public static Class getInnerClass(Class pEncapsulatingClass, String pInnerClassName) throws ClassNotFoundException(Code) | | Parameters: pInnerClassName - local name of the class without package and encapsulating class name inner class or inner interface if there is one declared inside the given class. throws: ClassNotFoundException - if desired class has not been found. |
isSubclass | public static boolean isSubclass(Class pClassBeingTested, Class pPossibleSuperclass)(Code) | | Uses reflection to find out whether the class being tested is a subclass of the other class
true only if pClassBeingTested represents class, pPossibleSuperclass also represents classand pClassBeingTested extends pPossibleSuperclass at any depth of the hierarchy |
isSubinterface | public static boolean isSubinterface(Class pClassBeingTested, Class pPossibleSuperinterface)(Code) | | Uses reflection to find out whether the class being tested is a subinterface of the other interface
true only if pPossibleSuperinterface represents interface and class/interface pClassBeingTested implementspPossibleSuperinterface at any depth of the hierarchy |
isSubtype | public static boolean isSubtype(Class pClassBeingTested, Class pPossibleSuperclass)(Code) | | This method uses reflection to find out whether the class being tested is of specified type (i.e. can be
casted to it). Does the analysis regardless of whether classes are interfaces or not
|
|
|