Class Function
java.lang.Object
de.inetsoftware.jwebassembly.binary.SectionEntry
de.inetsoftware.jwebassembly.binary.Function
- Direct Known Subclasses:
ImportFunction
An entry in the function section of the WebAssembly.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) WasmOutputStream
(package private) int
(package private) ArrayList
<SourceMapping> (package private) int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addCodeOffset
(int offset) Add an offset to the marked code position in the source map(package private) void
markCodePosition
(int streamPosition, int javaSourceLine, String sourceFileName) Add code position marker for a source map.(package private) void
writeSectionEntry
(WasmOutputStream stream) Write this single entry to a section
-
Field Details
-
id
int id -
typeId
int typeId -
paramNames
-
functionsStream
WasmOutputStream functionsStream -
sourceMappings
ArrayList<SourceMapping> sourceMappings
-
-
Constructor Details
-
Function
Function()
-
-
Method Details
-
writeSectionEntry
Write this single entry to a section- Specified by:
writeSectionEntry
in classSectionEntry
- Parameters:
stream
- the target- Throws:
IOException
- if any I/O error occur
-
markCodePosition
Add code position marker for a source map.- Parameters:
streamPosition
- the position in the function streamjavaSourceLine
- the position in the Java Source filesourceFileName
- the name of the Java source file
-
addCodeOffset
void addCodeOffset(int offset) Add an offset to the marked code position in the source map- Parameters:
offset
- the offset
-