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());
}