summaryrefslogtreecommitdiffstats
path: root/tests/features151/ptw/ExposedType.java
blob: daa2974c81c2be5f2836557e05ffd824826c2e23 (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
public class ExposedType {
	public static void main(String[] args) {
		new ExposedTypeOne().foo();
		new ExposedTypeTwo().foo();
		new ExposedTypeThree().foo();
	}
}

class ExposedTypeOne {
	public void foo() {	}
}

class ExposedTypeTwo {
	public void foo() {	}
}

class ExposedTypeThree {
	public void foo() {	}
}

aspect X pertypewithin(Exposed*) {
	before(): execution(* foo(..)) {
		System.err.println("here I am "+thisJoinPoint+": for class "+getWithinType());
	}
}