blob: 9dc9927be2ae2624c296c18f49282f477b1449e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import org.aspectj.weaver.tools.*;
public class ReflectOnAjcCompiledPointcuts {
public static void main(String[] args) {
PointcutParser p = new PointcutParser();
PointcutExpression pe = null;
pe = p.parsePointcutExpression("PointcutLibrary.propertyAccess()");
pe = p.parsePointcutExpression("PointcutLibrary.propertyUpdate()");
pe = p.parsePointcutExpression("PointcutLibrary.methodExecution()");
pe = p.parsePointcutExpression("PointcutLibrary.propertyGet()");
pe = p.parsePointcutExpression("PointcutLibrary.propertySet(Object)");
PointcutParameter pp = p.createPointcutParameter("foo",String.class);
p.parsePointcutExpression("execution(* *(..)) && PointcutLibrary.propertySet(foo)",
Object.class,
new PointcutParameter[] {pp});
}
}
|