Package io.github.eutro.jwasm.tree
Class ExportNode
java.lang.Object
io.github.eutro.jwasm.tree.ExportNode
A node that represents an export of a module.
-
Field Summary
Modifier and TypeFieldDescriptionint
The index of the exported value.@NotNull String
The name of the export.byte
The type of the export, one ofOpcodes.EXPORTS_FUNC
,Opcodes.EXPORTS_TABLE
,Opcodes.EXPORTS_MEM
orOpcodes.EXPORTS_GLOBAL
. -
Constructor Summary
ConstructorDescriptionExportNode
(@NotNull String name, byte type, int index) Construct anExportNode
with the given name, type and index. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ExportsVisitor ev) Make the givenExportsVisitor
visit this export.
-
Field Details
-
name
The name of the export. -
type
public byte typeThe type of the export, one ofOpcodes.EXPORTS_FUNC
,Opcodes.EXPORTS_TABLE
,Opcodes.EXPORTS_MEM
orOpcodes.EXPORTS_GLOBAL
. -
index
public int indexThe index of the exported value.
-
-
Constructor Details
-
ExportNode
Construct anExportNode
with the given name, type and index.- Parameters:
name
- The name of the export.type
- The type of the export, one ofOpcodes.EXPORTS_FUNC
,Opcodes.EXPORTS_TABLE
,Opcodes.EXPORTS_MEM
orOpcodes.EXPORTS_GLOBAL
.index
- The index of the exported value.
-
-
Method Details
-
accept
Make the givenExportsVisitor
visit this export.- Parameters:
ev
- The visitor to visit.
-