com.devonfw.cobigen.tsplugin.merger.constants.Constants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsplugin Show documentation
Show all versions of tsplugin Show documentation
A Code-based incremental Generator
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);
}
}