MethodCalledByConstructorInvocation mi = (MethodCalledByConstructorInvocation) invocation;
return p.matchesCall(mi.getAdvisor(), mi.getCalling(), mi.getCalledMethod().getDeclaringClass(), mi.getCalledMethod());
}
else if (invocation instanceof ConstructorCalledByConstructorInvocation)
{
ConstructorCalledByConstructorInvocation mi = (ConstructorCalledByConstructorInvocation) invocation;
return p.matchesCall(mi.getAdvisor(), mi.getCallingConstructor(), mi.getCalledConstructor().getDeclaringClass(), mi.getCalledConstructor());
}
else if (invocation instanceof ConstructorCalledByMethodInvocation)
{
ConstructorCalledByMethodInvocation mi = (ConstructorCalledByMethodInvocation) invocation;
return p.matchesCall(mi.getAdvisor(), mi.getCallingMethod(), mi.getCalledConstructor().getDeclaringClass(), mi.getCalledConstructor());
}
throw new RuntimeException("UNKNOWN JOINPOINT TYPE: " + invocation.getClass().getName());
}