Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 557ab18118bab281eb2e0f78844efb329262f51c (plain) (blame)
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
package javax.lang.model;

public enum SourceVersion {

	RELEASE_0,

	RELEASE_1,

	RELEASE_2,

	RELEASE_3,

	RELEASE_4,

	RELEASE_5,

	RELEASE_6,

	RELEASE_7,

	RELEASE_8, 
	RELEASE_9,

	RELEASE_10,

	RELEASE_11,

	RELEASE_12,

	RELEASE_13, 
	RELEASE_14;

	public static SourceVersion latest() {
		return RELEASE_14;
	}

	private static final SourceVersion latestSupported = getLatestSupported();

	private static SourceVersion getLatestSupported() {
		return RELEASE_14;
	}

	public static SourceVersion latestSupported() {
		return latestSupported;
	}

	public static boolean isIdentifier(CharSequence name) {
		return true;
	}

	public static boolean isName(CharSequence name) {
		return isName(name, latest());
	}

	public static boolean isName(CharSequence name, SourceVersion version) {
		return true;
	}

	public static boolean isKeyword(CharSequence s) {
		return isKeyword(s, latest());
	}

	public static boolean isKeyword(CharSequence s, SourceVersion version) {
		return true;
	}
}

Back to the top