1 /*
2 * Themis: Java Project Framework
3 * Copyright 2012-2026. Tony Washer
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy
7 * of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17 package io.github.tonywasher.joceanus.themis.lethe.analysis;
18
19 /**
20 * KeyWords.
21 */
22 public enum ThemisAnalysisKeyWord {
23 /**
24 * Package.
25 */
26 PACKAGE("package"),
27
28 /**
29 * Import.
30 */
31 IMPORT("import"),
32
33 /**
34 * Class.
35 */
36 CLASS("class"),
37
38 /**
39 * Enum.
40 */
41 ENUM("enum"),
42
43 /**
44 * Interface.
45 */
46 INTERFACE("interface"),
47
48 /**
49 * Annotation.
50 */
51 ANNOTATION("@interface"),
52
53 /**
54 * Extends.
55 */
56 EXTENDS("extends"),
57
58 /**
59 * Implements.
60 */
61 IMPLEMENTS("implements"),
62
63 /**
64 * Super.
65 */
66 SUPER("super"),
67
68 /**
69 * Throws.
70 */
71 THROWS("throws"),
72
73 /**
74 * If.
75 */
76 IF("if"),
77
78 /**
79 * Else.
80 */
81 ELSE("else"),
82
83 /**
84 * For.
85 */
86 FOR("for"),
87
88 /**
89 * Break.
90 */
91 BREAK("break"),
92
93 /**
94 * Continue.
95 */
96 CONTINUE("continue"),
97
98 /**
99 * Yield.
100 */
101 YIELD("yield"),
102
103 /**
104 * Do.
105 */
106 DO("do"),
107
108 /**
109 * While.
110 */
111 WHILE("while"),
112
113 /**
114 * Try.
115 */
116 TRY("try"),
117
118 /**
119 * Catch.
120 */
121 CATCH("catch"),
122
123 /**
124 * FINALLY.
125 */
126 FINALLY("finally"),
127
128 /**
129 * RETURN.
130 */
131 RETURN("return"),
132
133 /**
134 * THROW.
135 */
136 THROW("throw"),
137
138 /**
139 * NEW.
140 */
141 NEW("new"),
142
143 /**
144 * Switch.
145 */
146 SWITCH("switch"),
147
148 /**
149 * Case.
150 */
151 CASE("case"),
152
153 /**
154 * Default.
155 */
156 DEFAULT("default");
157
158 /**
159 * The keyWord.
160 */
161 private final String theKeyWord;
162
163 /**
164 * Constructor.
165 *
166 * @param pKeyWord the keyWord
167 */
168 ThemisAnalysisKeyWord(final String pKeyWord) {
169 theKeyWord = pKeyWord;
170 }
171
172 /**
173 * Obtain the keyWord.
174 *
175 * @return the keyWord
176 */
177 String getKeyWord() {
178 return theKeyWord;
179 }
180
181 @Override
182 public String toString() {
183 return getKeyWord();
184 }
185 }