diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/AcuCobolDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/AcuCobolDescriptor.java new file mode 100644 index 000000000..469c60eac --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/AcuCobolDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.AcuCobolParser; + +/** + * A Descriptor for the AcuCobol warnings. + * + * @author Lorenz Munsch + */ +class AcuCobolDescriptor extends ParserDescriptor { + + private static final String ID = "acu-cobol"; + private static final String NAME = "AcuCobol"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + AcuCobolDescriptor() { + super(ID, NAME, new AcuCobolParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/AjcDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/AjcDescriptor.java new file mode 100644 index 000000000..d0fe71025 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/AjcDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.AjcParser; + +/** + * A Descriptor for the Ajc warnings. + * + * @author Lorenz Munsch + */ +class AjcDescriptor extends ParserDescriptor { + + private static final String ID = "aspectj"; + private static final String NAME = "AspectJ"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + AjcDescriptor() { + super(ID, NAME, new AjcParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/AndroidLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/AndroidLintDescriptor.java new file mode 100644 index 000000000..a7aa5f177 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/AndroidLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.violations.AndroidLintParserAdapter; + +/** + * A Descriptor for the AndroidLint warnings. + * + * @author Lorenz Munsch + */ +class AndroidLintDescriptor extends ParserDescriptor { + + private static final String ID = "android-lint"; + private static final String NAME = "Android Lint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + AndroidLintDescriptor() { + super(ID, NAME, new AndroidLintParserAdapter()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/AnsibleLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/AnsibleLintDescriptor.java new file mode 100644 index 000000000..3547ac395 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/AnsibleLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.AnsibleLintParser; + +/** + * A Descriptor for the AnsibleLint warnings. + * + * @author Lorenz Munsch + */ +class AnsibleLintDescriptor extends ParserDescriptor { + + private static final String ID = "ansiblelint"; + private static final String NAME = "Ansible Lint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + AnsibleLintDescriptor() { + super(ID, NAME, new AnsibleLintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/AntJavacDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/AntJavacDescriptor.java new file mode 100644 index 000000000..21278bb86 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/AntJavacDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.AntJavacParser; + +/** + * A Descriptor for the AntJavac warnings. + * + * @author Lorenz Munsch + */ +class AntJavacDescriptor extends ParserDescriptor { + + private static final String ID = "ant-javac"; + private static final String NAME = "Ant Javac"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + AntJavacDescriptor() { + super(ID, NAME, new AntJavacParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/Armcc5CompilerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/Armcc5CompilerDescriptor.java new file mode 100644 index 000000000..717a7127c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/Armcc5CompilerDescriptor.java @@ -0,0 +1,22 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.Armcc5CompilerParser; + +/** + * A Descriptor for the Armcc5Compiler warnings. + * + * @author Lorenz Munsch + */ +class Armcc5CompilerDescriptor extends ParserDescriptor { + + private static final String ID = "armcc5"; + private static final String NAME = "Armcc5 Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + Armcc5CompilerDescriptor() { + super(ID, NAME, new Armcc5CompilerParser()); + } + +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ArmccCompilerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ArmccCompilerDescriptor.java new file mode 100644 index 000000000..49dbe1119 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ArmccCompilerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ArmccCompilerParser; + +/** + * A Descriptor for the ArmccCompiler warnings. + * + * @author Lorenz Munsch + */ +class ArmccCompilerDescriptor extends ParserDescriptor { + + private static final String ID = "armcc"; + private static final String NAME = "Armcc Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + ArmccCompilerDescriptor() { + super(ID, NAME, new ArmccCompilerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/BuckminsterDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/BuckminsterDescriptor.java new file mode 100644 index 000000000..c8653a245 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/BuckminsterDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.BuckminsterParser; + +/** + * A Descriptor for the Buckminster warnings. + * + * @author Lorenz Munsch + */ +class BuckminsterDescriptor extends ParserDescriptor { + + private static final String ID = "buckminster"; + private static final String NAME = "Buckminster"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + BuckminsterDescriptor() { + super(ID, NAME, new BuckminsterParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CadenceIncisiveDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CadenceIncisiveDescriptor.java new file mode 100644 index 000000000..30bdda489 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CadenceIncisiveDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.CadenceIncisiveParser; + +/** + * A Descriptor for the CadenceIncisive warnings. + * + * @author Lorenz Munsch + */ +class CadenceIncisiveDescriptor extends ParserDescriptor { + + private static final String ID = "cadence"; + private static final String NAME = "Cadence Incisive"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CadenceIncisiveDescriptor() { + super(ID, NAME, new CadenceIncisiveParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CcmDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CcmDescriptor.java new file mode 100644 index 000000000..1ca68df72 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CcmDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ccm.CcmParser; + +/** + * A Descriptor for the Ccm warnings. + * + * @author Lorenz Munsch + */ +class CcmDescriptor extends ParserDescriptor { + + private static final String ID = "ccm"; + private static final String NAME = "CCM"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CcmDescriptor() { + super(ID, NAME, new CcmParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CheckstyleDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CheckstyleDescriptor.java new file mode 100644 index 000000000..5a9e8bb64 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CheckstyleDescriptor.java @@ -0,0 +1,44 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.checkstyle.CheckStyleParser; + +/** + * A Descriptor for the Checkstyle warnings. + * + * @author Lorenz Munsch + */ +class CheckstyleDescriptor extends ParserDescriptor { + + private static final String ID = "checkstyle"; + private static final String NAME = "CheckStyle"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CheckstyleDescriptor() { + super(ID, NAME, new CheckStyleParser()); + } + + /** + * + * Defines the default resultfile name and extension. + * + * @return the name of the resultfile + */ + @Override + public String getPattern() { + return "**/checkstyle-result.xml"; + } + + /** + * + * Determines the checker URL. + * + * @return the checker URL or empty String + */ + @Override + public String getUrl() { + return "https://checkstyle.org"; + } + +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ClangDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ClangDescriptor.java new file mode 100644 index 000000000..a39e39e9c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ClangDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ClangParser; + +/** + * A Descriptor for the Clang parser. + * + * @author Lorenz Munsch + */ +class ClangDescriptor extends ParserDescriptor { + + private static final String ID = "clang"; + private static final String NAME = "Clang"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + ClangDescriptor() { + super(ID, NAME, new ClangParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ClangTidyDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ClangTidyDescriptor.java new file mode 100644 index 000000000..33b813d39 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ClangTidyDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ClangTidyParser; + +/** + * A Descriptor for the Clang tidy parser. + * + * @author Lorenz Munsch + */ +class ClangTidyDescriptor extends ParserDescriptor { + + private static final String ID = "clang-tidy"; + private static final String NAME = "Clang-Tidy"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + ClangTidyDescriptor() { + super(ID, NAME, new ClangTidyParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CodeAnalysisDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CodeAnalysisDescriptor.java new file mode 100644 index 000000000..e2a8705a8 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CodeAnalysisDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.CodeAnalysisParser; + +/** + * A Descriptor for the Code Analysis parser. + * + * @author Lorenz Munsch + */ +class CodeAnalysisDescriptor extends ParserDescriptor { + + private static final String ID = "code-analysis"; + private static final String NAME = "Code Analysis"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CodeAnalysisDescriptor() { + super(ID, NAME, new CodeAnalysisParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CoolfluxChessccDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CoolfluxChessccDescriptor.java new file mode 100644 index 000000000..815cfe827 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CoolfluxChessccDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.CoolfluxChessccParser; + +/** + * A Descriptor for the Coold Flux Chesscc parser. + * + * @author Lorenz Munsch + */ +class CoolfluxChessccDescriptor extends ParserDescriptor { + + private static final String ID = "coolflux"; + private static final String NAME = "Coolflux DSP Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CoolfluxChessccDescriptor() { + super(ID, NAME, new CoolfluxChessccParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CpdDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CpdDescriptor.java new file mode 100644 index 000000000..4154b96c8 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CpdDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.dry.cpd.CpdParser; + +/** + * A Descriptor for the Cpfr parser. + * + * @author Lorenz Munsch + */ +class CpdDescriptor extends ParserDescriptor { + + private static final String ID = "cpd"; + private static final String NAME = "CPD"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CpdDescriptor() { + super(ID, NAME, new CpdParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/CppLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/CppLintDescriptor.java new file mode 100644 index 000000000..001bdbc78 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/CppLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.CppLintParser; + +/** + * A Descriptor for the Cpp Lint parser. + * + * @author Lorenz Munsch + */ +class CppLintDescriptor extends ParserDescriptor { + + private static final String ID = "cpplint"; + private static final String NAME = "CppLint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + CppLintDescriptor() { + super(ID, NAME, new CppLintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/DescriptorFactory.java b/src/main/java/edu/hm/hafner/analysis/descriptor/DescriptorFactory.java new file mode 100644 index 000000000..c8b69a554 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/DescriptorFactory.java @@ -0,0 +1,143 @@ +package edu.hm.hafner.analysis.descriptor; + +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +/** + * Provides a {@link DescriptorFactory} that returns a map for all available Parsers. + * + * @author Lorenz Munsch + */ +@SuppressWarnings({"checkstyle:ClassDataAbstractionCoupling", "checkstyle:ClassFanOutComplexity"}) +public class DescriptorFactory { + + private final ParserDescriptor[] allDescriptors = { + new AcuCobolDescriptor(), + new AjcDescriptor(), + new AndroidLintDescriptor(), + new AnsibleLintDescriptor(), + new AntJavacDescriptor(), + new Armcc5CompilerDescriptor(), + new ArmccCompilerDescriptor(), + new BuckminsterDescriptor(), + new CadenceIncisiveDescriptor(), + new CcmDescriptor(), + new CheckstyleDescriptor(), + new ClangDescriptor(), + new ClangTidyDescriptor(), + new CodeAnalysisDescriptor(), + new CoolfluxChessccDescriptor(), + new CpdDescriptor(), + new CppLintDescriptor(), + new DiabCDescriptor(), + new DrMemoryDescriptor(), + new DupfinderDescriptor(), + new EclipseDescriptor(), + new EclipseMavenDescriptor(), + new EclipseXmlDescriptor(), + new ErlcDescriptor(), + new ErrorProneDescriptor(), + new FindBugsDescriptor(), + new FlexSdkDescriptor(), + new FxcopDescriptor(), + new Gcc4CompilerDescriptor(), + new Gcc4LinkerDescriptor(), + new GccDescriptor(), + new GendarmeDescriptor(), + new GhsMultiDescriptor(), + new GnatDescriptor(), + new GnuFortranDescriptor(), + new GoLintDescriptor(), + new GoVetDescriptor(), + new GradleErrorProneDescriptor(), + new IarCStatDescriptor(), + new IarDescriptor(), + new IdeaInspectionDescriptor(), + new IntelDescriptor(), + new InvalidsDescriptor(), + new JavacDescriptor(), + new JavaDocDescriptor(), + new JcreportDescriptor(), + new LintDescriptor(), + new MavenConsoleDescriptor(), + new MetrowerksCwCompilerDescriptor(), + new MetrowerksCwLinkerDescriptor(), + new MsBuildDescriptor(), + new NagFortranDescriptor(), + new P4Descriptor(), + new Pep8Descriptor(), + new PerlCriticDescriptor(), + new PhpDescriptor(), + new PmdDescriptor(), + new PreFastDescriptor(), + new PuppetLintDescriptor(), + new PyLintDescriptor(), + new QacSourceCodeAnalyserDescriptor(), + new RfLintDescriptor(), + new RoboCopyDescriptor(), + new SbtScalacDescriptor(), + new ScalacDescriptor(), + new SimianDescriptor(), + new SonarQubeDiffDescriptor(), + new SonarQubeIssueDescriptor(), + new SphinxBuildDescriptor(), + new StyleCopDescriptor(), + new SunCDescriptor(), + new TaglistDescriptor(), + new TaskingVxCompilerDescriptor(), + new TiCcsDescriptor(), + new TnsdlDescriptor(), + new XlcCompilerDescriptor(), + new XlcLinkerDescriptor(), + new YuiCompressorDescriptor() + }; + + private final Map descriptors = new HashMap<>(); + + /** + * Initializes the descriptor-map. + */ + public DescriptorFactory() { + initialize(); + } + + /** + * Creates the content for the descriptor-map with all available Parsers. + */ + private void initialize() { + for (ParserDescriptor descriptor : allDescriptors) { + descriptors.put(descriptor.getName(), descriptor); + } + } + + /** + * Gets the name identifier of every available descriptor. + * + * @return a set of all descriptor names + */ + public Set getDescriptorNames() { + return descriptors.keySet(); + } + + /** + * Used to access the desired descriptor. + * + * @param name + * the string identifier for a descriptor. + * + * @return the requested descriptor + */ + public ParserDescriptor getDescriptor(final String name) { + return descriptors.get(name); + } + + /** + * Returns the descriptor map. + * + * @return the map of all supported descriptors + */ + public Map getAllDescriptors() { + return descriptors; + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/DiabCDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/DiabCDescriptor.java new file mode 100644 index 000000000..f98a6172c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/DiabCDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.DiabCParser; + +/** + * A Descriptor for the Diab C parser. + * + * @author Lorenz Munsch + */ +class DiabCDescriptor extends ParserDescriptor { + + private static final String ID = "diabc"; + private static final String NAME = "Wind River Diab Compiler (C/C++)"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + DiabCDescriptor() { + super(ID, NAME, new DiabCParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/DrMemoryDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/DrMemoryDescriptor.java new file mode 100644 index 000000000..d674792a2 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/DrMemoryDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.DrMemoryParser; + +/** + * A Descriptor for the Dr Memory parser. + * + * @author Lorenz Munsch + */ +class DrMemoryDescriptor extends ParserDescriptor { + + private static final String ID = "dr-memory"; + private static final String NAME = "Dr. Memory"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + DrMemoryDescriptor() { + super(ID, NAME, new DrMemoryParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/DupfinderDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/DupfinderDescriptor.java new file mode 100644 index 000000000..e166bd4e6 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/DupfinderDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.dry.dupfinder.DupFinderParser; + +/** + * A Descriptor for the Dup Finder parser. + * + * @author Lorenz Munsch + */ +class DupfinderDescriptor extends ParserDescriptor { + + private static final String ID = "dupfinder"; + private static final String NAME = "Resharper dupFinder"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + DupfinderDescriptor() { + super(ID, NAME, new DupFinderParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseDescriptor.java new file mode 100644 index 000000000..fec50c4f6 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.EclipseParser; + +/** + * A Descriptor for the Eclipse parser. + * + * @author Lorenz Munsch + */ +class EclipseDescriptor extends ParserDescriptor { + + private static final String ID = "eclipse"; + private static final String NAME = "Eclipse ECJ"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + EclipseDescriptor() { + super(ID, NAME, new EclipseParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseMavenDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseMavenDescriptor.java new file mode 100644 index 000000000..bc25e4e0c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseMavenDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.EclipseMavenParser; + +/** + * A Descriptor for the Eclipse Maven parser. + * + * @author Lorenz Munsch + */ +class EclipseMavenDescriptor extends ParserDescriptor { + + private static final String ID = "eclipse-maven"; + private static final String NAME = "Eclipse Maven"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + EclipseMavenDescriptor() { + super(ID, NAME, new EclipseMavenParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseXmlDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseXmlDescriptor.java new file mode 100644 index 000000000..1f4a38e21 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/EclipseXmlDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.EclipseXMLParser; + +/** + * A Descriptor for the Eclipse Xml parser. + * + * @author Lorenz Munsch + */ +class EclipseXmlDescriptor extends ParserDescriptor { + + private static final String ID = "eclipse-xml"; + private static final String NAME = "EclipseXml"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + EclipseXmlDescriptor() { + super(ID, NAME, new EclipseXMLParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ErlcDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ErlcDescriptor.java new file mode 100644 index 000000000..8641b273a --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ErlcDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ErlcParser; + +/** + * A Descriptor for the Erlc parser. + * + * @author Lorenz Munsch + */ +class ErlcDescriptor extends ParserDescriptor { + + private static final String ID = "erlc"; + private static final String NAME = "Erlang Compiler (erlc)"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + ErlcDescriptor() { + super(ID, NAME, new ErlcParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ErrorProneDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ErrorProneDescriptor.java new file mode 100644 index 000000000..66261877d --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ErrorProneDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ErrorProneParser; + +/** + * A Descriptor for the Error Prone parser. + * + * @author Lorenz Munsch + */ +class ErrorProneDescriptor extends ParserDescriptor { + + private static final String ID = "error-prone"; + private static final String NAME = "ErrorProne"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + ErrorProneDescriptor() { + super(ID, NAME, new ErrorProneParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/FindBugsDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/FindBugsDescriptor.java new file mode 100644 index 000000000..8a845bcae --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/FindBugsDescriptor.java @@ -0,0 +1,22 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.FindBugsParser; +import edu.hm.hafner.analysis.parser.FindBugsParser.PriorityProperty; + +/** + * A Descriptor for the Find Bugs parser. + * + * @author Lorenz Munsch + */ +class FindBugsDescriptor extends ParserDescriptor { + + private static final String ID = "findbugs"; + private static final String NAME = "FindBugs"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + FindBugsDescriptor() { + super(ID, NAME, new FindBugsParser(PriorityProperty.RANK)); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/FlexSdkDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/FlexSdkDescriptor.java new file mode 100644 index 000000000..6b7e8498c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/FlexSdkDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.FlexSdkParser; + +/** + * A Descriptor for the Flex SDK parser. + * + * @author Lorenz Munsch + */ +class FlexSdkDescriptor extends ParserDescriptor { + + private static final String ID = "flex"; + private static final String NAME = "Flex SDK Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + FlexSdkDescriptor() { + super(ID, NAME, new FlexSdkParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/FxcopDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/FxcopDescriptor.java new file mode 100644 index 000000000..eac732876 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/FxcopDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.fxcop.FxCopParser; + +/** + * A Descriptor for the Fxcop warnings. + * + * @author Lorenz Munsch + */ +class FxcopDescriptor extends ParserDescriptor { + + private static final String ID = "fxcop"; + private static final String NAME = "FxCop"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + FxcopDescriptor() { + super(ID, NAME, new FxCopParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/Gcc4CompilerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/Gcc4CompilerDescriptor.java new file mode 100644 index 000000000..1ab3cb66e --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/Gcc4CompilerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.Gcc4CompilerParser; + +/** + * A Descriptor for the Gcc 4 Compiler parser. + * + * @author Lorenz Munsch + */ +class Gcc4CompilerDescriptor extends ParserDescriptor { + + private static final String ID = "gcc4"; + private static final String NAME = "GNU C Compiler (gcc)"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + Gcc4CompilerDescriptor() { + super(ID, NAME, new Gcc4CompilerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/Gcc4LinkerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/Gcc4LinkerDescriptor.java new file mode 100644 index 000000000..1c9366135 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/Gcc4LinkerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.Gcc4LinkerParser; + +/** + * A Descriptor for the Gcc 4 Compiler parser. + * + * @author Lorenz Munsch + */ +class Gcc4LinkerDescriptor extends ParserDescriptor { + + private static final String ID = "gcc-4-linker"; + private static final String NAME = "Gcc4Linker"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + Gcc4LinkerDescriptor() { + super(ID, NAME, new Gcc4LinkerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GccDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GccDescriptor.java new file mode 100644 index 000000000..a6f423583 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GccDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.GccParser; + +/** + * A Descriptor for the Gcc parser. + * + * @author Lorenz Munsch + */ +class GccDescriptor extends ParserDescriptor { + + private static final String ID = "gcc"; + private static final String NAME = "Gcc"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GccDescriptor() { + super(ID, NAME, new GccParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GendarmeDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GendarmeDescriptor.java new file mode 100644 index 000000000..35418d692 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GendarmeDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.gendarme.GendarmeParser; + +/** + * A Descriptor for the Gendarme warnings. + * + * @author Lorenz Munsch + */ +class GendarmeDescriptor extends ParserDescriptor { + + private static final String ID = "gendarme"; + private static final String NAME = "Gendarme"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GendarmeDescriptor() { + super(ID, NAME, new GendarmeParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GhsMultiDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GhsMultiDescriptor.java new file mode 100644 index 000000000..df4747af0 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GhsMultiDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.GhsMultiParser; + +/** + * A Descriptor for the GHS Multi parser. + * + * @author Lorenz Munsch + */ +class GhsMultiDescriptor extends ParserDescriptor { + + private static final String ID = "ghs-multi"; + private static final String NAME = "GHS Multi Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GhsMultiDescriptor() { + super(ID, NAME, new GhsMultiParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GnatDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GnatDescriptor.java new file mode 100644 index 000000000..ecd07c6f2 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GnatDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.GnatParser; + +/** + * A Descriptor for the Gnat parser. + * + * @author Lorenz Munsch + */ +class GnatDescriptor extends ParserDescriptor { + + private static final String ID = "gnat"; + private static final String NAME = "Ada Compiler (gnat)"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GnatDescriptor() { + super(ID, NAME, new GnatParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GnuFortranDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GnuFortranDescriptor.java new file mode 100644 index 000000000..5b12a9434 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GnuFortranDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.GnuFortranParser; + +/** + * A Descriptor for the Gnu Fortran parser. + * + * @author Lorenz Munsch + */ +class GnuFortranDescriptor extends ParserDescriptor { + + private static final String ID = "fortran"; + private static final String NAME = "GNU Fortran Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GnuFortranDescriptor() { + super(ID, NAME, new GnuFortranParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GoLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GoLintDescriptor.java new file mode 100644 index 000000000..87eba604e --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GoLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.GoLintParser; + +/** + * A Descriptor for the Go Lint parser. + * + * @author Lorenz Munsch + */ +class GoLintDescriptor extends ParserDescriptor { + + private static final String ID = "golint"; + private static final String NAME = "Go Lint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GoLintDescriptor() { + super(ID, NAME, new GoLintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GoVetDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GoVetDescriptor.java new file mode 100644 index 000000000..26fdf8ace --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GoVetDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.GoVetParser; + +/** + * A Descriptor for the Go Lint parser. + * + * @author Lorenz Munsch + */ +class GoVetDescriptor extends ParserDescriptor { + + private static final String ID = "go-vet"; + private static final String NAME = "Go Vet"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GoVetDescriptor() { + super(ID, NAME, new GoVetParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/GradleErrorProneDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/GradleErrorProneDescriptor.java new file mode 100644 index 000000000..1cbb2119d --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/GradleErrorProneDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ErrorProneParser; + +/** + * A Descriptor for the Gradle Error Prone parser. + * + * @author Lorenz Munsch + */ +class GradleErrorProneDescriptor extends ParserDescriptor { + + private static final String ID = "gradle-error-prone"; + private static final String NAME = "GradleErrorProne"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + GradleErrorProneDescriptor() { + super(ID, NAME, new ErrorProneParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/IarCStatDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/IarCStatDescriptor.java new file mode 100644 index 000000000..ec35b89c9 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/IarCStatDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.IarCstatParser; + +/** + * A Descriptor for the Iar C Stat parser. + * + * @author Lorenz Munsch + */ +class IarCStatDescriptor extends ParserDescriptor { + + private static final String ID = "iar-cstat"; + private static final String NAME = "IAR C-STAT"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + IarCStatDescriptor() { + super(ID, NAME, new IarCstatParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/IarDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/IarDescriptor.java new file mode 100644 index 000000000..02acabc42 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/IarDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.IarParser; + +/** + * A Descriptor for the Iar parser. + * + * @author Lorenz Munsch + */ +class IarDescriptor extends ParserDescriptor { + + private static final String ID = "iar"; + private static final String NAME = "IAR Compiler (C/C++)"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + IarDescriptor() { + super(ID, NAME, new IarParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/IdeaInspectionDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/IdeaInspectionDescriptor.java new file mode 100644 index 000000000..78faf2bc0 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/IdeaInspectionDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.IdeaInspectionParser; + +/** + * A Descriptor for the Idea Inspection parser. + * + * @author Lorenz Munsch + */ +class IdeaInspectionDescriptor extends ParserDescriptor { + + private static final String ID = "idea"; + private static final String NAME = "IntelliJ IDEA Inspections"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + IdeaInspectionDescriptor() { + super(ID, NAME, new IdeaInspectionParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/IntelDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/IntelDescriptor.java new file mode 100644 index 000000000..2c15af9be --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/IntelDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.IntelParser; + +/** + * A Descriptor for the Intel parser. + * + * @author Lorenz Munsch + */ +class IntelDescriptor extends ParserDescriptor { + + private static final String ID = "intel"; + private static final String NAME = "Intel Compiler (C, Fortran)"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + IntelDescriptor() { + super(ID, NAME, new IntelParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/InvalidsDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/InvalidsDescriptor.java new file mode 100644 index 000000000..ad3e244e0 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/InvalidsDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.InvalidsParser; + +/** + * A Descriptor for the Invalids parser. + * + * @author Lorenz Munsch + */ +class InvalidsDescriptor extends ParserDescriptor { + + private static final String ID = "invalids"; + private static final String NAME = "Oracle Invalids"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + InvalidsDescriptor() { + super(ID, NAME, new InvalidsParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/JavaDocDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/JavaDocDescriptor.java new file mode 100644 index 000000000..92fbce9a0 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/JavaDocDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.JavaDocParser; + +/** + * A Descriptor for the Java Doc parser. + * + * @author Lorenz Munsch + */ +class JavaDocDescriptor extends ParserDescriptor { + + private static final String ID = "java-doc"; + private static final String NAME = "JavaDoc"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + JavaDocDescriptor() { + super(ID, NAME, new JavaDocParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/JavacDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/JavacDescriptor.java new file mode 100644 index 000000000..362765dce --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/JavacDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.JavacParser; + +/** + * A Descriptor for the Javac parser. + * + * @author Lorenz Munsch + */ +class JavacDescriptor extends ParserDescriptor { + + private static final String ID = "javac"; + private static final String NAME = "Javac"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + JavacDescriptor() { + super(ID, NAME, new JavacParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/JcreportDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/JcreportDescriptor.java new file mode 100644 index 000000000..4a716f9d5 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/JcreportDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.jcreport.JcReportParser; + +/** + * A Descriptor for the Jcreport warnings. + * + * @author Lorenz Munsch + */ +class JcreportDescriptor extends ParserDescriptor { + + private static final String ID = "jc-report"; + private static final String NAME = "JCReport"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + JcreportDescriptor() { + super(ID, NAME, new JcReportParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/LintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/LintDescriptor.java new file mode 100644 index 000000000..8d37d382b --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/LintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.LintParser; + +/** + * A Descriptor for the Lint parser. + * + * @author Lorenz Munsch + */ +class LintDescriptor extends ParserDescriptor { + + private static final String ID = "lint"; + private static final String NAME = "Lint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + LintDescriptor() { + super(ID, NAME, new LintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/MavenConsoleDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/MavenConsoleDescriptor.java new file mode 100644 index 000000000..25a01d3a1 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/MavenConsoleDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.MavenConsoleParser; + +/** + * A Descriptor for the Maven Console parser. + * + * @author Lorenz Munsch + */ +class MavenConsoleDescriptor extends ParserDescriptor { + + private static final String ID = "maven-warnings"; + private static final String NAME = "Maven"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + MavenConsoleDescriptor() { + super(ID, NAME, new MavenConsoleParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/MetrowerksCwCompilerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/MetrowerksCwCompilerDescriptor.java new file mode 100644 index 000000000..bcec69270 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/MetrowerksCwCompilerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.MetrowerksCwCompilerParser; + +/** + * A Descriptor for the Metrowerks Cw Comnpiler parser. + * + * @author Lorenz Munsch + */ +class MetrowerksCwCompilerDescriptor extends ParserDescriptor { + + private static final String ID = "metrowerks"; + private static final String NAME = "Metrowerks CodeWarrior"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + MetrowerksCwCompilerDescriptor() { + super(ID, NAME, new MetrowerksCwCompilerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/MetrowerksCwLinkerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/MetrowerksCwLinkerDescriptor.java new file mode 100644 index 000000000..85c11ae3c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/MetrowerksCwLinkerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.MetrowerksCwLinkerParser; + +/** + * A Descriptor for the Metrowerks Cw Linker parser. + * + * @author Lorenz Munsch + */ +class MetrowerksCwLinkerDescriptor extends ParserDescriptor { + + private static final String ID = "metrowerks-cw-linker"; + private static final String NAME = "MetrowerksCwLinker"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + MetrowerksCwLinkerDescriptor() { + super(ID, NAME, new MetrowerksCwLinkerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/MsBuildDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/MsBuildDescriptor.java new file mode 100644 index 000000000..956ff42b3 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/MsBuildDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.MsBuildParser; + +/** + * A Descriptor for the Ms Build parser. + * + * @author Lorenz Munsch + */ +class MsBuildDescriptor extends ParserDescriptor { + + private static final String ID = "msbuild"; + private static final String NAME = "MSBuild"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + MsBuildDescriptor() { + super(ID, NAME, new MsBuildParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/NagFortranDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/NagFortranDescriptor.java new file mode 100644 index 000000000..6df680a42 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/NagFortranDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.NagFortranParser; + +/** + * A Descriptor for the Nag Fortran parser. + * + * @author Lorenz Munsch + */ +class NagFortranDescriptor extends ParserDescriptor { + + private static final String ID = "nag-fortran"; + private static final String NAME = "NAG Fortran Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + NagFortranDescriptor() { + super(ID, NAME, new NagFortranParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/P4Descriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/P4Descriptor.java new file mode 100644 index 000000000..2b324269e --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/P4Descriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.P4Parser; + +/** + * A Descriptor for the P4 parser. + * + * @author Lorenz Munsch + */ +class P4Descriptor extends ParserDescriptor { + + private static final String ID = "p4"; + private static final String NAME = "P4"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + P4Descriptor() { + super(ID, NAME, new P4Parser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ParserDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ParserDescriptor.java new file mode 100644 index 000000000..33e3a4f1a --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ParserDescriptor.java @@ -0,0 +1,81 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.IssueParser; + +/** + * Interface to describe all descriptors. + * + * @author Lorenz Munsch + */ +public class ParserDescriptor { + + + private final String id; + private final String name; + private final IssueParser issueParser; + + /** + * + * + * ctor for the abstract Parser Descriptor class. + * + * @param id the technical Id + * @param name the name of the descriptor + * @param issueParser the parser + */ + public ParserDescriptor(final String id, final String name, final IssueParser issueParser) { + this.id = id; + this.name = name; + this.issueParser = issueParser; + } + + /** + * Get the technical id. + * + * @return the technical id of the parser + */ + public String getId() { + return id; + } + + /** + * + * Name to identify the parser. + * + * @return the identification string + */ + public String getName() { + return name; + } + + /** + * + * Creates a new Parser. + * + * @return the parser + */ + public IssueParser createParser() { + return issueParser; + } + + /** + * + * Defines the default resultfile name and extension. + * + * @return the name of the resultfile + */ + public String getPattern() { + return ""; + } + + /** + * + * Determines the checker URL. + * + * @return the checker URL or empty String + */ + public String getUrl() { + return ""; + } + +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/Pep8Descriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/Pep8Descriptor.java new file mode 100644 index 000000000..a4a7ce16b --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/Pep8Descriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.Pep8Parser; + +/** + * A Descriptor for the Pep 8 parser. + * + * @author Lorenz Munsch + */ +class Pep8Descriptor extends ParserDescriptor { + + private static final String ID = "pep8"; + private static final String NAME = "Pep8"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + Pep8Descriptor() { + super(ID, NAME, new Pep8Parser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/PerlCriticDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/PerlCriticDescriptor.java new file mode 100644 index 000000000..f2d164764 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/PerlCriticDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.PerlCriticParser; + +/** + * A Descriptor for the Perl Critic parser. + * + * @author Lorenz Munsch + */ +class PerlCriticDescriptor extends ParserDescriptor { + + private static final String ID = "perl-critic"; + private static final String NAME = "Perl::Critic"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + PerlCriticDescriptor() { + super(ID, NAME, new PerlCriticParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/PhpDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/PhpDescriptor.java new file mode 100644 index 000000000..a411bca9c --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/PhpDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.PhpParser; + +/** + * A Descriptor for the Php parser. + * + * @author Lorenz Munsch + */ +class PhpDescriptor extends ParserDescriptor { + + private static final String ID = "php"; + private static final String NAME = "PHP Runtime"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + PhpDescriptor() { + super(ID, NAME, new PhpParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/PmdDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/PmdDescriptor.java new file mode 100644 index 000000000..03ff40457 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/PmdDescriptor.java @@ -0,0 +1,43 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.pmd.PmdParser; + +/** + * A descriptor for the Pmd warnings. + * + * @author Lorenz Munsch + */ +class PmdDescriptor extends ParserDescriptor { + + private static final String ID = "pmd"; + private static final String NAME = "PMD"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + PmdDescriptor() { + super(ID, NAME, new PmdParser()); + } + + /** + * + * Defines the default resultfile name and extension. + * + * @return the name of the resultfile + */ + @Override + public String getPattern() { + return "**/pmd.xml"; + } + + /** + * + * Determines the checker URL. + * + * @return the checker URL or empty String + */ + @Override + public String getUrl() { + return "https://pmd.github.io"; + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/PreFastDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/PreFastDescriptor.java new file mode 100644 index 000000000..4d484a7fd --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/PreFastDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.PreFastParser; + +/** + * A Descriptor for the Pre Fast parser. + * + * @author Lorenz Munsch + */ +class PreFastDescriptor extends ParserDescriptor { + + private static final String ID = "prefast"; + private static final String NAME = "PREfast"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + PreFastDescriptor() { + super(ID, NAME, new PreFastParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/PuppetLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/PuppetLintDescriptor.java new file mode 100644 index 000000000..a44493b95 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/PuppetLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.PuppetLintParser; + +/** + * A Descriptor for the Puppet Lint parser. + * + * @author Lorenz Munsch + */ +class PuppetLintDescriptor extends ParserDescriptor { + + private static final String ID = "puppetlint"; + private static final String NAME = "Puppet-Lint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + PuppetLintDescriptor() { + super(ID, NAME, new PuppetLintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/PyLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/PyLintDescriptor.java new file mode 100644 index 000000000..118a3930a --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/PyLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.PyLintParser; + +/** + * A Descriptor for the Py Lint parser. + * + * @author Lorenz Munsch + */ +class PyLintDescriptor extends ParserDescriptor { + + private static final String ID = "pylint"; + private static final String NAME = "Pylint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + PyLintDescriptor() { + super(ID, NAME, new PyLintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/QacSourceCodeAnalyserDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/QacSourceCodeAnalyserDescriptor.java new file mode 100644 index 000000000..d86276eab --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/QacSourceCodeAnalyserDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.QacSourceCodeAnalyserParser; + +/** + * A Descriptor for the Qac Source Code Analyser parser. + * + * @author Lorenz Munsch + */ +class QacSourceCodeAnalyserDescriptor extends ParserDescriptor { + + private static final String ID = "qac"; + private static final String NAME = "QA-C Sourcecode Analyser"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + QacSourceCodeAnalyserDescriptor() { + super(ID, NAME, new QacSourceCodeAnalyserParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/RfLintDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/RfLintDescriptor.java new file mode 100644 index 000000000..0aaa6edd5 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/RfLintDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.RfLintParser; + +/** + * A Descriptor for the Rf Lint parser. + * + * @author Lorenz Munsch + */ +class RfLintDescriptor extends ParserDescriptor { + + private static final String ID = "rflint"; + private static final String NAME = "Robot Framework Lint"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + RfLintDescriptor() { + super(ID, NAME, new RfLintParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/RoboCopyDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/RoboCopyDescriptor.java new file mode 100644 index 000000000..883077a7b --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/RoboCopyDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.RobocopyParser; + +/** + * A Descriptor for the Robo Copy parser. + * + * @author Lorenz Munsch + */ +class RoboCopyDescriptor extends ParserDescriptor { + + private static final String ID = "robocopy"; + private static final String NAME = "Robocopy"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + RoboCopyDescriptor() { + super(ID, NAME, new RobocopyParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/SbtScalacDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/SbtScalacDescriptor.java new file mode 100644 index 000000000..b918a57ff --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/SbtScalacDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.SbtScalacParser; + +/** + * A Descriptor for the Sbt Scalac parser. + * + * @author Lorenz Munsch + */ +class SbtScalacDescriptor extends ParserDescriptor { + + private static final String ID = "sbt-scalac"; + private static final String NAME = "SbtScalac"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + SbtScalacDescriptor() { + super(ID, NAME, new SbtScalacParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/ScalacDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/ScalacDescriptor.java new file mode 100644 index 000000000..110c18554 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/ScalacDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.ScalacParser; + +/** + * A Descriptor for the Scalac parser. + * + * @author Lorenz Munsch + */ +class ScalacDescriptor extends ParserDescriptor { + + private static final String ID = "scalac"; + private static final String NAME = "Scala Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + ScalacDescriptor() { + super(ID, NAME, new ScalacParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/SimianDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/SimianDescriptor.java new file mode 100644 index 000000000..eaeb28ea1 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/SimianDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.dry.simian.SimianParser; + +/** + * A Descriptor for the Simian parser. + * + * @author Lorenz Munsch + */ +class SimianDescriptor extends ParserDescriptor { + + private static final String ID = "simian"; + private static final String NAME = "Simian"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + SimianDescriptor() { + super(ID, NAME, new SimianParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/SonarQubeDiffDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/SonarQubeDiffDescriptor.java new file mode 100644 index 000000000..db17ee049 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/SonarQubeDiffDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.SonarQubeDiffParser; + +/** + * A Descriptor for the Sonar Qube Diff parser. + * + * @author Lorenz Munsch + */ +class SonarQubeDiffDescriptor extends ParserDescriptor { + + private static final String ID = "sonar_diff"; + private static final String NAME = "SonarQubeDiff"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + SonarQubeDiffDescriptor() { + super(ID, NAME, new SonarQubeDiffParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/SonarQubeIssueDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/SonarQubeIssueDescriptor.java new file mode 100644 index 000000000..67d197168 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/SonarQubeIssueDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.SonarQubeIssuesParser; + +/** + * A Descriptor for the Sonar Qube Issue parser. + * + * @author Lorenz Munsch + */ +class SonarQubeIssueDescriptor extends ParserDescriptor { + + private static final String ID = "sonar_Issue"; + private static final String NAME = "SonarQubeIssue"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + SonarQubeIssueDescriptor() { + super(ID, NAME, new SonarQubeIssuesParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/SphinxBuildDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/SphinxBuildDescriptor.java new file mode 100644 index 000000000..12b240540 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/SphinxBuildDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.SphinxBuildParser; + +/** + * A Descriptor for the Sphinx Build parser. + * + * @author Lorenz Munsch + */ +class SphinxBuildDescriptor extends ParserDescriptor { + + private static final String ID = "sphinx"; + private static final String NAME = "Sphinx-build"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + SphinxBuildDescriptor() { + super(ID, NAME, new SphinxBuildParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/StyleCopDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/StyleCopDescriptor.java new file mode 100644 index 000000000..c9f58d576 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/StyleCopDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.StyleCopParser; + +/** + * A Descriptor for the Style Cop parser. + * + * @author Lorenz Munsch + */ +class StyleCopDescriptor extends ParserDescriptor { + + private static final String ID = "stylecop"; + private static final String NAME = "StyleCop"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + StyleCopDescriptor() { + super(ID, NAME, new StyleCopParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/SunCDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/SunCDescriptor.java new file mode 100644 index 000000000..682c6e144 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/SunCDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.SunCParser; + +/** + * A Descriptor for the Sun C parser. + * + * @author Lorenz Munsch + */ +class SunCDescriptor extends ParserDescriptor { + + private static final String ID = "sunc"; + private static final String NAME = "SUN C++ Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + SunCDescriptor() { + super(ID, NAME, new SunCParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/TaglistDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/TaglistDescriptor.java new file mode 100644 index 000000000..0b4c57d5e --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/TaglistDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.TaglistParser; + +/** + * A Descriptor for the Tag List parser. + * + * @author Lorenz Munsch + */ +class TaglistDescriptor extends ParserDescriptor { + + private static final String ID = "taglist"; + private static final String NAME = "Maven Taglist Plugin"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + TaglistDescriptor() { + super(ID, NAME, new TaglistParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/TaskingVxCompilerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/TaskingVxCompilerDescriptor.java new file mode 100644 index 000000000..2e03c8f5e --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/TaskingVxCompilerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.TaskingVxCompilerParser; + +/** + * A Descriptor for the Tasking Vx Compiler parser. + * + * @author Lorenz Munsch + */ +class TaskingVxCompilerDescriptor extends ParserDescriptor { + + private static final String ID = "tasking-vx"; + private static final String NAME = "TASKING VX Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + TaskingVxCompilerDescriptor() { + super(ID, NAME, new TaskingVxCompilerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/TiCcsDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/TiCcsDescriptor.java new file mode 100644 index 000000000..2d4273032 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/TiCcsDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.TiCcsParser; + +/** + * A Descriptor for the TiCcs parser. + * + * @author Lorenz Munsch + */ +class TiCcsDescriptor extends ParserDescriptor { + + private static final String ID = "code-composer"; + private static final String NAME = "Texas Instruments Code Composer Studio"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + TiCcsDescriptor() { + super(ID, NAME, new TiCcsParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/TnsdlDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/TnsdlDescriptor.java new file mode 100644 index 000000000..58e3e6d39 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/TnsdlDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.TnsdlParser; + +/** + * A Descriptor for the Tnsdl parser. + * + * @author Lorenz Munsch + */ +class TnsdlDescriptor extends ParserDescriptor { + + private static final String ID = "tnsdl"; + private static final String NAME = "TNSDL Translator"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + TnsdlDescriptor() { + super(ID, NAME, new TnsdlParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/XlcCompilerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/XlcCompilerDescriptor.java new file mode 100644 index 000000000..47d6e6bb1 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/XlcCompilerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.XlcCompilerParser; + +/** + * A Descriptor for the Xlc Compiler parser. + * + * @author Lorenz Munsch + */ +class XlcCompilerDescriptor extends ParserDescriptor { + + private static final String ID = "xlc-compiler"; + private static final String NAME = "IBM XLC Compiler"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + XlcCompilerDescriptor() { + super(ID, NAME, new XlcCompilerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/XlcLinkerDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/XlcLinkerDescriptor.java new file mode 100644 index 000000000..d67cc9029 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/XlcLinkerDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.XlcLinkerParser; + +/** + * A Descriptor for the Xlc Linker parser. + * + * @author Lorenz Munsch + */ +class XlcLinkerDescriptor extends ParserDescriptor { + + private static final String ID = "xlc-linker"; + private static final String NAME = "IBM XLC Linker"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + XlcLinkerDescriptor() { + super(ID, NAME, new XlcLinkerParser()); + } +} diff --git a/src/main/java/edu/hm/hafner/analysis/descriptor/YuiCompressorDescriptor.java b/src/main/java/edu/hm/hafner/analysis/descriptor/YuiCompressorDescriptor.java new file mode 100644 index 000000000..2ddf17605 --- /dev/null +++ b/src/main/java/edu/hm/hafner/analysis/descriptor/YuiCompressorDescriptor.java @@ -0,0 +1,21 @@ +package edu.hm.hafner.analysis.descriptor; + +import edu.hm.hafner.analysis.parser.YuiCompressorParser; + +/** + * A Descriptor for the Yui Compressor parser. + * + * @author Lorenz Munsch + */ +class YuiCompressorDescriptor extends ParserDescriptor { + + private static final String ID = "yui"; + private static final String NAME = "YUI Compressor"; + + /** + * ctor for the abstract Parser Descriptor class. + */ + YuiCompressorDescriptor() { + super(ID, NAME, new YuiCompressorParser()); + } +} \ No newline at end of file diff --git a/src/test/resources/design.puml b/src/test/resources/design.puml index be7661f24..8931e3fdb 100644 --- a/src/test/resources/design.puml +++ b/src/test/resources/design.puml @@ -9,10 +9,13 @@ skinparam component { [Parsers] <<..analysis.parser..>> [Assertions] <<..assertj>> [Model] <<..analysis>> +[Descriptors] <<..descriptor>> [Utilities] <<..util>> [Parsers] --> [Model] +[Descriptors] --> [Parsers] +[Descriptors] --> [Model] [Parsers] --> [Utilities] [Parsers] --> [Assertions] [Model] --> [Utilities]