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.xanalysis.parser.node;
18
19 import com.github.javaparser.ast.Modifier;
20 import com.github.javaparser.ast.Modifier.Keyword;
21 import io.github.tonywasher.joceanus.oceanus.base.OceanusException;
22 import io.github.tonywasher.joceanus.themis.xanalysis.parser.base.ThemisXAnalysisParserDef;
23
24 /**
25 * Import.
26 */
27 public class ThemisXAnalysisNodeModifier
28 extends ThemisXAnalysisBaseNode<Modifier> {
29 /**
30 * The Keyword.
31 */
32 private final Keyword theKeyword;
33
34 /**
35 * Constructor.
36 *
37 * @param pParser the parser
38 * @param pModifier the modifier
39 * @throws OceanusException on error
40 */
41 ThemisXAnalysisNodeModifier(final ThemisXAnalysisParserDef pParser,
42 final Modifier pModifier) throws OceanusException {
43 super(pParser, pModifier);
44 theKeyword = pModifier.getKeyword();
45 }
46
47 /**
48 * Obtain the keyword.
49 *
50 * @return the keyword
51 */
52 public Keyword getKeyword() {
53 return theKeyword;
54 }
55 }