.match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, s_declaringType)));
assertTrue(new ExpressionInfo(
"execution(void test.expression.Target.modifiers1()) && !call(void test.expression.Target.modifiers1())",
NAMESPACE).getExpression()
.match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, s_declaringType)));
ExpressionVisitor expression = new ExpressionInfo(
"execution(void test.expression.Target.modifiers1()) && !call(void test.expression.Target.modifiers3()) && !(call(void test.expression.Target.modifiers1()) || call(void test.expression.Target.modifiers2()))",
NAMESPACE).getExpression();
assertTrue(expression.match(new ExpressionContext(PointcutType.EXECUTION, modifiers1, s_declaringType)));
assertFalse(expression.match(new ExpressionContext(PointcutType.CALL, modifiers1, s_declaringType)));
assertFalse(expression.match(new ExpressionContext(PointcutType.SET, modifier1, s_declaringType)));
assertFalse(new ExpressionInfo(
"call(void test.expression.Target.modifiers1()) && !set(int test.expression.Target.modifier1)",
NAMESPACE).getExpression().match(new ExpressionContext(PointcutType.CALL, modifier1, null)));
}