Class WasmOptions

java.lang.Object
de.inetsoftware.jwebassembly.module.WasmOptions

public class WasmOptions extends Object
The option/properties for the behavior of the compiler.
Author:
Volker Berlin
  • Field Details

  • Constructor Details

    • WasmOptions

      public WasmOptions(HashMap<String,String> properties)
      Create a new instance of options
      Parameters:
      properties - compiler properties
  • Method Details

    • debugNames

      public boolean debugNames()
      Property for adding debug names to the output if true.
      Returns:
      true, add debug information
    • useGC

      public boolean useGC()
      If the GC feature of WASM should be use or the GC of the JavaScript host.
      Returns:
      true, use the GC instructions of WASM.
    • useEH

      public boolean useEH()
      If the exception handling feature of WASM should be use or an unreachable instruction.
      Returns:
      true, use the EH instructions of WASM; false, generate an unreachable instruction
    • getSourceMapBase

      @Nonnull public String getSourceMapBase()
      Get the relative path between the final wasm file location and the source files location. If not empty it should end with a slash like "../../src/main/java/".
      Returns:
      the path