blob: 0a8aed75c176e5082d33c7d7ee1a1c3077e321f3 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
|
public class Fields2 {
int a = 1;
String s = "hello";
double d = 1.0d;
boolean b = true;
short ps = (short)1;
float fs = 1.0f;
long ls = 1L;
byte bs = (byte)3;
char cs = 'a';
Inner obj = new Inner();
static int as = 1;
static String ss = "hello";
static double ds = 1.0d;
static Inner objs = new Inner();
public static void main(String []argv) {
Fields2 f = new Fields2();
f.a = 2;
f.ps = (short)3;
f.d = 2.0d;
f.obj = new Inner();
f.s = "helo";
f.fs = 4f;
f.ls = 3L;
f.bs = (byte)23;
f.cs = 'a';
}
static class Inner {}
}
aspect X {
before(): within(Fields2) && set(* *) && withincode(* main(..)){
System.out.println(thisJoinPointStaticPart.getSignature());
}
}
|