blob: d56aef7588b1b1af9f961257248060a1426ea865 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package fish;
import main.Main;
privileged aspect B {
private static String privateStatic = "B's private";
//introduction PrivateClass {
public void PrivateClass.fooB() {
b--;
Main.doThang("B: " + b);
Main.doThang("B: " + b());
System.out.println(privateStatic + "::" + FooC.privateStatic);
}
//}
before(PrivateClass obj): call(void PrivateClass.goo()) && target(obj) {
obj.b--;
Main.doThang("B: " + obj.b);
Main.doThang("B: " + obj.b());
}
}
class FooC {
private static int privateStatic = 2;
}
|