blob: da8964fdbee42a13f42c7a533b22e0dbcb3e53f9 (
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
|
// let's look at using it for real...
public class Eleven {
static int[] is1,is2;
public static void main(String []argv) {
is1 = new int[5];
is2 = new int[8];
}
}
aspect X {
Object interestingArray = null;
after(int size) returning(Object o): call(*.new(..)) && within(Eleven) && args(size) {
if (size==8) {
System.err.println("Found the interesting array");
interestingArray = o;
}
}
}
|