aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental/AdviceHandles/base/src/Handles.aj
blob: 195f59fb05997aae486720cb1be83bea2d3dc336 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package spacewar;

//=AdviceHandles/src<spacewar*Handles.aj}Handles
public aspect Handles {

	// =AdviceHandles/src<spacewar*Handles.aj}Handles&before
	before() : execution(* *..*()) {
		
	}
	// =AdviceHandles/src<spacewar*Handles.aj}Handles&before!2
	before() : execution(* *..*()) {
		
	}
	// =AdviceHandles/src<spacewar*Handles.aj}Handles&before&I
	before(int x) : execution(* *..*(int)) && args(x) {
		
	}
	
	// =AdviceHandles/src<spacewar*Handles.aj}Handles&before&I!2
	before(int x) : execution(* *..*(int)) && args(x) {
		
	}

	// =AdviceHandles/src<spacewar*Handles.aj}Handles&after
	after() : execution(* *..*()) {
		
	}
	
	// =AdviceHandles/src<spacewar*Handles.aj}Handles&afterReturning
	after() returning() : execution(* *..*()) {
		
	}

	// =AdviceHandles/src<spacewar*Handles.aj}Handles&afterThrowing
	after() throwing(): execution(* *..*()) {
		
	}

	// =AdviceHandles/src<spacewar*Handles.aj}Handles&afterThrowing&I
	after(int x) throwing(): execution(* *..*(int)) && args(x) {
		
	}

        int x() {
          // =AdviceHandles/src<spacewar*Handles.aj}Handles~x[NamedClass
          class NamedClass {
            void doIt() {
            }
          }
          return 0;
        }

  interface I {}
  public void foo() {
    new I() {};
    new I() {};
  }
       

//Line60: 247742: c3 
void b(String x) {
  new Condition() {}; // l62
  new Condition() {}; // l63
}
void c(String x) {
  new Condition() {}; // l66
  new Fondue() {}; // l67
}


}

class Condition {} class Fondue {}

aspect Foo { // Line 71: 247742: c4
 after(String x) returning(String y) : within(NotExisting*) {  } //src<p*Foo.aj[Foo*&afterReturning&QString;
 after(String x) returning(int y) : within(NotExisting*) {  }    //src<p*Foo.aj[Foo*&afterReturning&QString;!2
}