Class DelegatingExporter
java.lang.Object
io.github.eutro.wasm2j.core.ext.ExtHolder
io.github.eutro.wasm2j.core.ext.DelegatingExtHolder
io.github.eutro.wasm2j.core.conf.impl.DelegatingExporter
- All Implemented Interfaces:
ExportableConvention
,ExtContainer
- Direct Known Subclasses:
ArrayTableConvention
,ByteBufferMemoryConvention
,FunctionConvention.Delegating
,GetterSetterGlobalConvention
,GlobalConvention.Delegating
,InstanceFunctionConvention
,MemoryConvention.Delegating
,TableConvention.Delegating
An
ExportableConvention
which just delegates to another.-
Constructor Summary
ConstructorDescriptionDelegatingExporter
(ExportableConvention exporter) Construct aDelegatingExporter
that delegates to the given exporter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
export
(ExportNode node, Module module, JClass jClass) Do whatever this convention defines as "exporting" the object from the module.protected ExtContainer
Get theExtHolder
to delegate to.Methods inherited from class io.github.eutro.wasm2j.core.ext.DelegatingExtHolder
getNullable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.eutro.wasm2j.core.ext.ExtContainer
getExt, getExtOrRun, getExtOrThrow
-
Constructor Details
-
DelegatingExporter
Construct aDelegatingExporter
that delegates to the given exporter.- Parameters:
exporter
- The exporter.
-
-
Method Details
-
export
Description copied from interface:ExportableConvention
Do whatever this convention defines as "exporting" the object from the module.- Specified by:
export
in interfaceExportableConvention
- Parameters:
node
- The export node.module
- The WebAssembly module being compiled.jClass
- The Java class being compiled into.
-
getDelegate
Description copied from class:DelegatingExtHolder
Get theExtHolder
to delegate to.- Specified by:
getDelegate
in classDelegatingExtHolder
- Returns:
- The delegate.
-