else {
jdtAspectMember = jdtAspectType;
}
if (jdtAspectMember != null) {
IAopReference ref = new AopReference(info.getType(), jdtAspectMember, JdtUtils
.getLineNumber(jdtAspectMember), jdtTargetType, JdtUtils
.getLineNumber(jdtTargetType), info, file, bean);
aopProject.addAopReference(ref);
}
}
}
else if (info instanceof BeanAspectDefinition) {
IMethod jdtAspectMethod = null;
if (info instanceof JavaAdvisorDefinition) {
jdtAspectMethod = JdtUtils.getMethod(jdtAspectType, info.getAdviceMethodName(), info
.getAdviceMethodParameterTypes());
}
else {
// validate the aspect definition
if (info.getAdviceMethod() == null) {
return;
}
jdtAspectMethod = JdtUtils.getMethod(jdtAspectType, info.getAdviceMethodName(), info
.getAdviceMethod().getParameterTypes());
}
if (jdtAspectMethod != null) {
// long start = System.currentTimeMillis();
Set<IMethod> matchingMethods = aspectDefinitionMatcher.matches(targetClass, bean, info,
aopProject.getProject().getProject());
for (IMethod method : matchingMethods) {
IAopReference ref = new AopReference(info.getType(), jdtAspectMethod, JdtUtils
.getLineNumber(jdtAspectMethod), method, JdtUtils.getLineNumber(method), info,
file, bean);
aopProject.addAopReference(ref);
}
// System.out.println(String.format("--- matching on '%s' took '%s'", targetClass, (System