Class ExportEntry


  • class ExportEntry
    extends SectionEntry
    An entry in the function section of the WebAssembly.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int id  
      private ExternalKind kind  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExportEntry​(java.lang.String name, ExternalKind kind, int id)
      Create an entry for the export section.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void writeSectionEntry​(WasmOutputStream stream)
      Write this single entry to a section
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
      • id

        private int id
    • Constructor Detail

      • ExportEntry

        ExportEntry​(java.lang.String name,
                    ExternalKind kind,
                    int id)
        Create an entry for the export section. This section contains a mapping from the external index to the type signature index.
        Parameters:
        name - the exported name
        kind - the type of exported object
        id - the id inside the list of the related type
    • Method Detail

      • writeSectionEntry

        void writeSectionEntry​(WasmOutputStream stream)
                        throws java.io.IOException
        Write this single entry to a section
        Specified by:
        writeSectionEntry in class SectionEntry
        Parameters:
        stream - the target
        Throws:
        java.io.IOException - if any I/O error occur