Class TextModuleWriter

java.lang.Object
de.inetsoftware.jwebassembly.module.ModuleWriter
de.inetsoftware.jwebassembly.text.TextModuleWriter
All Implemented Interfaces:
Closeable, AutoCloseable

public class TextModuleWriter extends ModuleWriter
Module Writer for text format with S-expressions.
  • Field Details

    • target

      private final WasmTarget target
    • output

      private final StringBuilder output
    • methodParamNames

      private final ArrayList<String> methodParamNames
    • typeOutput

      private final StringBuilder typeOutput
    • types

      private final ArrayList<String> types
    • methodOutput

      private StringBuilder methodOutput
    • imports

      private final StringBuilder imports
    • functions

      private final Map<String,Function> functions
    • abstracts

      private final Map<String,Function> abstracts
    • functionNames

      private final Set<String> functionNames
    • inset

      private int inset
    • isImport

      private boolean isImport
    • globals

      private final HashMap<String,AnyType> globals
    • useExceptions

      private boolean useExceptions
    • callIndirect

      private boolean callIndirect
    • useTypeString

      private boolean useTypeString
    • useTypeClass

      private boolean useTypeClass
  • Constructor Details

    • TextModuleWriter

      public TextModuleWriter(WasmTarget target, WasmOptions options) throws IOException
      Create a new instance.
      Parameters:
      target - target for the result
      options - compiler properties
      Throws:
      IOException - if any I/O error occur
  • Method Details