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

com.devonfw.cobigen.tsplugin.merger.constants.Constants Maven / Gradle / Ivy

There is a newer version: 2021.12.006
Show newest version
package com.devonfw.cobigen.tsplugin.merger.constants;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.devonfw.cobigen.tsplugin.merger.TypeScriptMerger;

/** List of constants used on the {@link TypeScriptMerger} */
public class Constants {

    /** Export statement regex */
    public static final String EXPORT_REGEX = "export\\s+([^\\s]+)";

    /**
     * Path of the executable file where the server of the external process is stored
     */
    public static final String EXE_NAME = "nestserver";

    /** We want to check whether it is a real export statement, not like the type "export class a" */
    public static final Map NOT_EXPORT_TYPES;

    static {
        final Map notExportTypes = new HashMap<>();
        notExportTypes.put("class", false);
        notExportTypes.put("interface", false);
        notExportTypes.put("const", false);
        notExportTypes.put("function", false);
        notExportTypes.put("enum", false);
        notExportTypes.put("let", false);
        notExportTypes.put("var", false);
        notExportTypes.put("public", false);
        notExportTypes.put("namespace", false);
        notExportTypes.put("default", false);
        notExportTypes.put("=", false);

        NOT_EXPORT_TYPES = Collections.unmodifiableMap(notExportTypes);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy