| java.lang.Object com.tc.aspectwerkz.reflect.ClassInfoHelper
Method Summary | |
public static List | collectInterfaces(ClassInfo classInfo) Collects all the interface from the given class including the one from its super class. | public static List | collectMethodsFromInterface(ClassInfo interfaceClassInfo) Collects the methods from all the interface and its super interfaces. | public static List | collectMethodsFromInterfacesImplementedBy(ClassInfo classInfo) Collects the methods from all the interfaces of the class and its super interfaces. | public static List | createInterfaceDefinedMethodList(ClassInfo klass, List interfaceDeclaredMethods) Creates a method list of all the methods in the class and super classes, if and only
if those are part of the given list of interfaces declared methods. | public static List | createMethodList(ClassInfo klass) Creates a method list of all the methods in the class and super classes, including package private ones. | public static boolean | extendsSuperClass(ClassInfo classInfo, String className) Checks if a class has a certain class as super class, somewhere up in the class hierarchy. | public static boolean | hasMethodClash(Set interfacesToAdd, ClassLoader loader) Checks if a set of interfaces has any clashes, meaning any methods with the same name and signature. | public static boolean | implementsInterface(ClassInfo classInfo, String interfaceName) Checks if a class implements a certain inteface, somewhere up in the class hierarchy, excluding
itself. | public static boolean | instanceOf(ClassInfo classInfo, String superclassName) Checks if a class has a certain class as super class or interface, somewhere up in the class hierarchy. |
collectInterfaces | public static List collectInterfaces(ClassInfo classInfo)(Code) | | Collects all the interface from the given class including the one from its super class.
Parameters: classInfo - list of interface classInfo declared in given class and its hierarchy in correct order |
collectMethodsFromInterface | public static List collectMethodsFromInterface(ClassInfo interfaceClassInfo)(Code) | | Collects the methods from all the interface and its super interfaces.
Parameters: interfaceClassInfo - list of methods declared in given class interfaces |
collectMethodsFromInterfacesImplementedBy | public static List collectMethodsFromInterfacesImplementedBy(ClassInfo classInfo)(Code) | | Collects the methods from all the interfaces of the class and its super interfaces.
Parameters: classInfo - list of methods declared in given class interfaces |
createInterfaceDefinedMethodList | public static List createInterfaceDefinedMethodList(ClassInfo klass, List interfaceDeclaredMethods)(Code) | | Creates a method list of all the methods in the class and super classes, if and only
if those are part of the given list of interfaces declared methods.
Parameters: klass - the class with the methods Parameters: interfaceDeclaredMethods - the list of interface declared methods the sorted method list |
createMethodList | public static List createMethodList(ClassInfo klass)(Code) | | Creates a method list of all the methods in the class and super classes, including package private ones.
Inherited methods are last in the list.
Parameters: klass - the class with the methods the sorted method list |
extendsSuperClass | public static boolean extendsSuperClass(ClassInfo classInfo, String className)(Code) | | Checks if a class has a certain class as super class, somewhere up in the class hierarchy.
Parameters: classInfo - the meta-data for the class to parse Parameters: className - the name of the super class true if we have a parse else false |
hasMethodClash | public static boolean hasMethodClash(Set interfacesToAdd, ClassLoader loader)(Code) | | Checks if a set of interfaces has any clashes, meaning any methods with the same name and signature.
Parameters: interfacesToAdd - Parameters: loader - boolean |
implementsInterface | public static boolean implementsInterface(ClassInfo classInfo, String interfaceName)(Code) | | Checks if a class implements a certain inteface, somewhere up in the class hierarchy, excluding
itself.
Parameters: classInfo - Parameters: interfaceName - true if we have a parse else false |
instanceOf | public static boolean instanceOf(ClassInfo classInfo, String superclassName)(Code) | | Checks if a class has a certain class as super class or interface, somewhere up in the class hierarchy.
Parameters: classInfo - the meta-data for the class to parse Parameters: superclassName - the name of the super class or interface true if we have a parse else false |
|
|