TeaVMFormat.java

package server.restful.common;

public enum TeaVMFormat {
    JS("JavaScript UMD", "4MB", "", "classic", "importScripts(", ")"),

    JS_EM2015("JavaScript EM2015", "4MB", "", "module", "import", ""),

    WASM_GC("WASM GC", "4MB", ", Safari might not work yet", "classic", "importScripts(", ")"),

    WASM_GC_SAB("WASM GC SAB", "4MB", ", Safari might not work yet", "classic", "importScripts(", ")");

    private final String teaVMFormatName;
    private final String approximateSize;
    private final String browsersExcept;
    private final String workerAttributes;
    private final String importStmtStart;
    private final String importStmtEnd;

    TeaVMFormat(String teaVMFormatName, String approximateSize, String browsersExcept, String workerAttributes,
                String importStmtStart, String importStmtEnd) {
        this.teaVMFormatName = teaVMFormatName;
        this.approximateSize = approximateSize;
        this.browsersExcept = browsersExcept;
        this.workerAttributes = workerAttributes;
        this.importStmtStart = importStmtStart;
        this.importStmtEnd = importStmtEnd;
    }

    public String getTeaVMFormatName() {
        return teaVMFormatName;
    }

    public String getApproximateSize() {
        return approximateSize;
    }

    public String getBrowsersExcept() {
        return browsersExcept;
    }

    public String getWorkerAttributes() {
        return workerAttributes;
    }

    public String getImportStmtStart() {
        return importStmtStart;
    }

    public String getImportStmtEnd() {
        return importStmtEnd;
    }
}