|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.reflect.ClassInfoHelper
Utility method for manipulating and managing ClassInfo hierarchies.
Constructor Summary | |
ClassInfoHelper()
|
Method Summary | |
static MemberInfo |
createMemberInfo(Class targetClass,
String withinMethodName,
String withinMethodSignature)
Creates a member info instance based on the signature etc. |
static boolean |
extendsSuperClass(ClassInfo classInfo,
String className)
Checks if a class has a certain class as super class, somewhere up in the class hierarchy. |
static boolean |
implementsInterface(ClassInfo classInfo,
String interfaceName)
Checks if a class implements a certain inteface, somewhere up in the class hierarchy. |
static boolean |
isMethodStatic(MethodInfo methodInfo)
Checks if a method is static or not. |
static boolean |
matchInterfaces(ClassInfo[] interfaces,
ClassInfo classInfo,
TypePattern pattern)
Tries to finds a parse at some interface in the hierarchy. |
static boolean |
matchSuperClasses(ClassInfo classInfo,
TypePattern pattern)
Tries to finds a parse at some superclass in the hierarchy. |
static boolean |
matchType(TypePattern typePattern,
ClassInfo classInfo)
Matches a type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassInfoHelper()
Method Detail |
public static boolean matchType(TypePattern typePattern, ClassInfo classInfo)
typePattern
- the pattern to try to parse againstclassInfo
- the info of the class
public static boolean matchSuperClasses(ClassInfo classInfo, TypePattern pattern)
classInfo
- the class infopattern
- the type pattern
public static boolean matchInterfaces(ClassInfo[] interfaces, ClassInfo classInfo, TypePattern pattern)
interfaces
- the interfacesclassInfo
- the class infopattern
- the type pattern
public static MemberInfo createMemberInfo(Class targetClass, String withinMethodName, String withinMethodSignature)
targetClass
- withinMethodName
- withinMethodSignature
-
public static boolean isMethodStatic(MethodInfo methodInfo)
methodInfo
- the info for the method
public static boolean implementsInterface(ClassInfo classInfo, String interfaceName)
classInfo
- interfaceName
-
public static boolean extendsSuperClass(ClassInfo classInfo, String className)
classInfo
- the meta-data for the class to parseclassName
- the name of the super class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |