aboutsummaryrefslogtreecommitdiff
path: root/test/pretty/resource/before/ThisParameter.java
blob: 42e4237e8737f6a271a62025571e4e604b6c062c (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
// version 8:
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

class ThisParameter {
	
	void untagged(ThisParameter this, int i) {
		// no content
	}
	
	void sourceTagged(@SourceTagged("source") ThisParameter this) {
		// no content
	}
	
	void classTagged(@ClassTagged("class") ThisParameter this) {
		// no content
	}	
	
	void runtimeTagged(@RuntimeTagged("runtime") ThisParameter this) {
		// no content
	}
	
	@Target(ElementType.TYPE_USE)
	@Retention(RetentionPolicy.SOURCE)
	@interface SourceTagged {
		String value();
	}
	
	@Target(ElementType.TYPE_USE)
	@Retention(RetentionPolicy.CLASS)
	@interface ClassTagged {
		String value();
	}
	
	@Target(ElementType.TYPE_USE)
	@Retention(RetentionPolicy.RUNTIME)
	@interface RuntimeTagged {
		String value();
	}
}