final Class adviceClass,
final MethodInfo[] methods) {
ExpressionInfo expressionInfo = new ExpressionInfo("execution(" + methodPattern + ')', EXPRESSION_NAMESPACE);
ExpressionVisitor expression = expressionInfo.getExpression();
for (int i = 0; i < methods.length; i++) {
MethodInfo method = methods[i];
if (method.getName().startsWith(TransformationConstants.SYNTHETIC_MEMBER_PREFIX)) {
continue;
}
if (expression.match(new ExpressionContext(PointcutType.EXECUTION, method, null))) {
int joinPointHash = AsmHelper.calculateMethodHash(method.getName(), method.getSignature());
removeAroundAdvice(adviceClass, joinPointHash);
removeBeforeAdvice(adviceClass, joinPointHash);
removeAfterAdvice(adviceClass, joinPointHash);
removeAfterReturningAdvice(adviceClass, joinPointHash);
removeAfterThrowingAdvice(adviceClass, joinPointHash);