| java.lang.Object com.tc.aspectwerkz.annotation.AspectAnnotationParser
AspectAnnotationParser | public class AspectAnnotationParser (Code) | | Extracts the aspects annotations from the class files and creates a meta-data representation of them.
Note: we are not using reflection to loop over fields, etc, so that we do not trigger nested loading, which could be
potential target classes.
author: Jonas BonŽr author: Alexandre Vasseur |
Method Summary | |
public static String | getAdviceNameAsInSource(MethodInfo methodInfo) | public static String | getExpressionElseValue(String value, String pointcut) Handles specific syntax for @AfterXXX annotation, where we can write it using the default "value" element
or instead specify the pointcut using "pointcut", and optionally a "type" element.
Parameters: value - Parameters: pointcut - the one of value or expression which is not null. | public static void | parse(ClassInfo classInfo, AspectDefinition aspectDef, ClassLoader loader) Parse the attributes and create and return a meta-data representation of them. |
getAdviceNameAsInSource | public static String getAdviceNameAsInSource(MethodInfo methodInfo)(Code) | | Returns the call signature of a Pointcut or advice with signature methodName(paramType paramName, ...) [we ignore
the return type] If there is no parameters, the call signature is not "name()" but just "name"
Parameters: methodInfo - string representation (see javavadoc) |
getExpressionElseValue | public static String getExpressionElseValue(String value, String pointcut)(Code) | | Handles specific syntax for @AfterXXX annotation, where we can write it using the default "value" element
or instead specify the pointcut using "pointcut", and optionally a "type" element.
Parameters: value - Parameters: pointcut - the one of value or expression which is not null. Both cannot be specified at the same time |
parse | public static void parse(ClassInfo classInfo, AspectDefinition aspectDef, ClassLoader loader)(Code) | | Parse the attributes and create and return a meta-data representation of them.
Parameters: classInfo - the class to extract attributes from Parameters: aspectDef - the aspect definition Parameters: loader - |
|
|