blob: d447300c2096e58ca6bbc46786c9c76afa740c3d (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
import java.util.*;
import java.io.IOException;
public class Good {
public static String foo;
public int publicA = 1;
private int privateA = 2;
protected int protectedA = 3;
int packageA = 4;
{ publicA = 5; }
static { foo = "hi"; }
public Good() { }
public void foo() {
int i = 0;
i += 1;
i += 2;
}
{ publicA = 6; }
}
aspect A {
int pkg1.Bar.interTypeField = 0;
//void Good.interTypeMethod() { }
int j;
before(): execution(void Good.foo()) {
System.out.println("");
}
public void m() { }
pointcut all(): call(* *(..));
after(): all() { System.out.println(""); }
declare warning: call(* mumble*(..)): "warning";
declare error: call(* gumble*(..)): "error";
// declare parents: Point extends java.io.Serializable;
// declare parents: Point implements java.util.Observable;
// declare soft: Point: call(* *(..));
}
interface I { }
//privileged aspect PrivilegedAspect { }
|