final AspectDefinition aspectDef) {
List afterAnnotations = AsmAnnotations.getAnnotations(AnnotationConstants.AFTER, method);
for (Iterator iterator = afterAnnotations.iterator(); iterator.hasNext();) {
After annotation = (After) iterator.next();
if (annotation != null) {
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
getAdviceNameAsInSource(method),
AdviceType.AFTER,
annotation.value(),
null,
aspectName,
aspectClassName,
method,
aspectDef
);
aspectDef.addAfterAdviceDefinition(adviceDef);
}
}
afterAnnotations = AsmAnnotations.getAnnotations(AnnotationConstants.AFTER_RETURNING, method);
for (Iterator iterator = afterAnnotations.iterator(); iterator.hasNext();) {
AfterReturning annotation = (AfterReturning) iterator.next();
if (annotation != null) {
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
getAdviceNameAsInSource(method),
AdviceType.AFTER_RETURNING,
getExpressionElseValue(annotation.value(), annotation.pointcut()),
annotation.type(),
aspectName,
aspectClassName,
method,
aspectDef
);
aspectDef.addAfterAdviceDefinition(adviceDef);
}
}
afterAnnotations = AsmAnnotations.getAnnotations(AnnotationConstants.AFTER_THROWING, method);
for (Iterator iterator = afterAnnotations.iterator(); iterator.hasNext();) {
AfterThrowing annotation = (AfterThrowing) iterator.next();
if (annotation != null) {
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
getAdviceNameAsInSource(method),
AdviceType.AFTER_THROWING,
getExpressionElseValue(annotation.value(), annotation.pointcut()),
annotation.type(),
aspectName,
aspectClassName,
method,
aspectDef
);
aspectDef.addAfterAdviceDefinition(adviceDef);
}
}
afterAnnotations = AsmAnnotations.getAnnotations(AnnotationConstants.AFTER_FINALLY, method);
for (Iterator iterator = afterAnnotations.iterator(); iterator.hasNext();) {
AfterFinally annotation = (AfterFinally) iterator.next();
if (annotation != null) {
AdviceDefinition adviceDef = DefinitionParserHelper.createAdviceDefinition(
getAdviceNameAsInSource(method),
AdviceType.AFTER_FINALLY,
annotation.value(),
null,
aspectName,