blob: 60766b74fda3b779ae2a4a180088803934ab70b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
public aspect Aspect {
//:method-call(void Foo.method1())=real
//:(virtual) method-call(void Foo.method2())=virtual
pointcut calls(): call(* Foo.*(..));
//:(virtual) method-call(void Bar.bar())=virtual
pointcut callBar():call(* Bar.*(..));
//:method-call(void Foo.method1())=real
//:(virtual) method-call(void Foo.method2())=virtual
pointcut callsWithin(): call(* Foo.*(..)) && within(Bar);
//:method-call(void Foo.method1())=real
//:(virtual) method-call(void Foo.method2())=virtual
pointcut callsWithincode(): call(* Foo.*(..))&&withincode(* Bar.*(..));
}
|