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
FieldsModifier and TypeFieldDescriptionintThe index of the exported value.@NotNull StringThe name of the export.byteThe type of the export, one ofOpcodes.EXPORTS_FUNC,Opcodes.EXPORTS_TABLE,Opcodes.EXPORTS_MEMorOpcodes.EXPORTS_GLOBAL. -
Constructor Summary
ConstructorsConstructorDescriptionExportNode(@NotNull String name, byte type, int index) Construct anExportNodewith the given name, type and index. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ExportsVisitor ev) Make the givenExportsVisitorvisit 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_MEMorOpcodes.EXPORTS_GLOBAL. -
index
public int indexThe index of the exported value.
-
-
Constructor Details
-
ExportNode
Construct anExportNodewith 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_MEMorOpcodes.EXPORTS_GLOBAL.index- The index of the exported value.
-
-
Method Details
-
accept
Make the givenExportsVisitorvisit this export.- Parameters:
ev- The visitor to visit.
-