aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testdata/src1/LTWMethodITD.aj
blob: 35049f04faaf1d272205af411d1707abb1fdc85f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.List;

public privileged aspect LTWMethodITD {

	public String LTWHelloWorld.getMessage () {
		return message;
	}
	
	public void LTWHelloWorld.setMessage (String newMessage) {
		message = newMessage;
	}

	pointcut init (LTWHelloWorld hw) :
		execution(LTWHelloWorld.new()) && this(hw);
		
	after (LTWHelloWorld hw) : init (hw) {
		System.err.println("LTWMethodITD.init(" + thisJoinPointStaticPart + ")");
		hw.getMessage();
		hw.setMessage("Hello LTWMethodITD");
		hw.add(getClass().getName());
	}
}