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 package net.sourceforge.plantumldependency.cli.main.option.programminglanguage.argument;
26
27 import static net.sourceforge.plantumldependency.cli.constants.log.ErrorConstants.CPP_NOT_IMPLEMENTED_YET_ERROR;
28
29 import java.util.Set;
30 import java.util.regex.Pattern;
31
32 import net.sourceforge.plantumldependency.cli.generic.GenericDependency;
33 import net.sourceforge.plantumldependency.cli.main.option.display.type.argument.DisplayType;
34 import net.sourceforge.plantumldependency.cli.main.option.programminglanguage.context.ProgrammingLanguageContext;
35 import net.sourceforge.plantumldependency.cli.main.option.programminglanguage.context.impl.CppProgrammingLanguageContext;
36
37
38
39
40
41
42
43
44 class CppProgrammingLanguage extends ProgrammingLanguage {
45
46
47 private static final long serialVersionUID = 5226406064459624517L;
48
49
50
51
52
53
54
55
56
57 protected CppProgrammingLanguage(final String programmingLanguageName) {
58 super(programmingLanguageName);
59 }
60
61
62
63
64
65
66 @Override
67 public ProgrammingLanguageContext createNewContext(final Set < DisplayType > displayTypesOpts,
68 final Pattern displayPackageNamePattern, final Pattern displayNamePattern) {
69 return new CppProgrammingLanguageContext(displayTypesOpts, displayPackageNamePattern, displayNamePattern);
70 }
71
72
73
74
75
76
77 @Override
78 public GenericDependency readDependencyFromFile(final String sourceFileContent,
79 final ProgrammingLanguageContext programmingLanguageContext) {
80 throw new UnsupportedOperationException(CPP_NOT_IMPLEMENTED_YET_ERROR);
81 }
82 }