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
ConstructorsConstructorDescriptionDelegatingExporter(ExportableConvention exporter) Construct aDelegatingExporterthat delegates to the given exporter. -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(ExportNode node, Module module, JClass jClass) Do whatever this convention defines as "exporting" the object from the module.protected ExtContainerGet theExtHolderto delegate to.Methods inherited from class io.github.eutro.wasm2j.core.ext.DelegatingExtHolder
getNullableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.eutro.wasm2j.core.ext.ExtContainer
getExt, getExtOrRun, getExtOrThrow
-
Constructor Details
-
DelegatingExporter
Construct aDelegatingExporterthat delegates to the given exporter.- Parameters:
exporter- The exporter.
-
-
Method Details
-
export
Description copied from interface:ExportableConventionDo whatever this convention defines as "exporting" the object from the module.- Specified by:
exportin interfaceExportableConvention- Parameters:
node- The export node.module- The WebAssembly module being compiled.jClass- The Java class being compiled into.
-
getDelegate
Description copied from class:DelegatingExtHolderGet theExtHolderto delegate to.- Specified by:
getDelegatein classDelegatingExtHolder- Returns:
- The delegate.
-