All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hadii.clarpse.compiler.CompilerFactory Maven / Gradle / Ivy

There is a newer version: 7.1.1
Show newest version
package com.hadii.clarpse.compiler;

/**
 * Factory to retrieve appropriate parsing tool for our projects.
 */
public class CompilerFactory {

    public static final ClarpseCompiler getParsingTool(final String parseType) throws Exception {
        switch (parseType.toLowerCase()) {

        case "java":
            return new ClarpseJavaCompiler();
        case "javascript":
            return new ClarpseJSCompiler();
        case "go":
            return new ClarpseGoCompiler();
        default:
            throw new Exception("Could not find parsing tool for: " + parseType);
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy