// filter caller methods
if (methodFilterCaller(where)) {
return;
}
CtConstructor ctConstructor = newExpr.getConstructor();
String calleeClassName = newExpr.getClassName();
// filter callee classes
if (!definition.inIncludePackage(calleeClassName)) {
return;
}
// filter the constructors
if (constructorFilter(ctConstructor)) {
return;
}
// create the caller method info
MemberInfo withinMethodInfo = null;
if (where instanceof CtMethod) {
withinMethodInfo = JavassistMethodInfo.getMethodInfo((CtMethod) where, context.getLoader());
} else if (where instanceof CtConstructor) {
withinMethodInfo = JavassistConstructorInfo.getConstructorInfo(
(CtConstructor) where,
context.getLoader());
}
// create the constructor info
CtConstructor constructor = newExpr.getConstructor();
ConstructorInfo calleeSideConstructorInfo = JavassistConstructorInfo.getConstructorInfo(
constructor,
context.getLoader());
ExpressionContext ctx = new ExpressionContext(
PointcutType.CALL,