Class PanamaExnRef

java.lang.Object
ai.tegmentum.wasmtime4j.panama.PanamaExnRef
All Implemented Interfaces:
ai.tegmentum.wasmtime4j.ExnRef

public final class PanamaExnRef extends Object implements ai.tegmentum.wasmtime4j.ExnRef
Panama FFI implementation of the ExnRef interface.

This class wraps a native Wasmtime exception reference using the Panama Foreign Function API for the WebAssembly exception handling proposal.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this exception reference and releases native resources.
    ai.tegmentum.wasmtime4j.WasmValue
    field(ai.tegmentum.wasmtime4j.Store store, int index)
     
    List<ai.tegmentum.wasmtime4j.WasmValue>
    fields(ai.tegmentum.wasmtime4j.Store store)
     
    long
     
    ai.tegmentum.wasmtime4j.memory.Tag
    getTag(ai.tegmentum.wasmtime4j.Store store)
     
    boolean
     
    boolean
    matchesTy(ai.tegmentum.wasmtime4j.Store store, ai.tegmentum.wasmtime4j.type.HeapType heapType)
     
    long
    toRaw(ai.tegmentum.wasmtime4j.Store store)
     
    ai.tegmentum.wasmtime4j.gc.ExnType
    ty(ai.tegmentum.wasmtime4j.Store store)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getTag

      public ai.tegmentum.wasmtime4j.memory.Tag getTag(ai.tegmentum.wasmtime4j.Store store) throws ai.tegmentum.wasmtime4j.exception.WasmException
      Specified by:
      getTag in interface ai.tegmentum.wasmtime4j.ExnRef
      Throws:
      ai.tegmentum.wasmtime4j.exception.WasmException
    • field

      public ai.tegmentum.wasmtime4j.WasmValue field(ai.tegmentum.wasmtime4j.Store store, int index) throws ai.tegmentum.wasmtime4j.exception.WasmException
      Specified by:
      field in interface ai.tegmentum.wasmtime4j.ExnRef
      Throws:
      ai.tegmentum.wasmtime4j.exception.WasmException
    • fields

      public List<ai.tegmentum.wasmtime4j.WasmValue> fields(ai.tegmentum.wasmtime4j.Store store) throws ai.tegmentum.wasmtime4j.exception.WasmException
      Specified by:
      fields in interface ai.tegmentum.wasmtime4j.ExnRef
      Throws:
      ai.tegmentum.wasmtime4j.exception.WasmException
    • ty

      public ai.tegmentum.wasmtime4j.gc.ExnType ty(ai.tegmentum.wasmtime4j.Store store) throws ai.tegmentum.wasmtime4j.exception.WasmException
      Specified by:
      ty in interface ai.tegmentum.wasmtime4j.ExnRef
      Throws:
      ai.tegmentum.wasmtime4j.exception.WasmException
    • getNativeHandle

      public long getNativeHandle()
      Specified by:
      getNativeHandle in interface ai.tegmentum.wasmtime4j.ExnRef
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface ai.tegmentum.wasmtime4j.ExnRef
    • toRaw

      public long toRaw(ai.tegmentum.wasmtime4j.Store store) throws ai.tegmentum.wasmtime4j.exception.WasmException
      Specified by:
      toRaw in interface ai.tegmentum.wasmtime4j.ExnRef
      Throws:
      ai.tegmentum.wasmtime4j.exception.WasmException
    • matchesTy

      public boolean matchesTy(ai.tegmentum.wasmtime4j.Store store, ai.tegmentum.wasmtime4j.type.HeapType heapType) throws ai.tegmentum.wasmtime4j.exception.WasmException
      Specified by:
      matchesTy in interface ai.tegmentum.wasmtime4j.ExnRef
      Throws:
      ai.tegmentum.wasmtime4j.exception.WasmException
    • close

      public void close()
      Closes this exception reference and releases native resources.