Class Function
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.Container
de.mirkosertic.bytecoder.core.backend.wasm.ast.Function
- All Implemented Interfaces:
Callable
,Importable
- Direct Known Subclasses:
ExportableFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FunctionType
private final String
private final Module
private final WasmType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
protected Module
int
resolveIndex
(WasmValue.ExportContext context) resolveResultType
(WasmValue.ExportContext context) toTable()
void
writeTo
(TextWriter textWriter, Module aModule) Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.Container
addChild, end, findByLabelInHierarchy, getChildren, hasChildren, parent, relativeDepthTo, relativeDepthTo
-
Field Details
-
module
-
functionType
-
label
-
params
-
resultType
-
-
Constructor Details
-
Function
-
Function
Function(Module aModule, FunctionType functionType, String label, List<Param> params) -
Function
Function(Module aModule, FunctionType functionType, String label, WasmType result)
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceImportable
- Throws:
IOException
-
getModule
-
getFunctionType
-
getLabel
-
getParams
-
getResultType
-
toTable
-
resolveResultType
- Specified by:
resolveResultType
in interfaceCallable
-
resolveIndex
- Specified by:
resolveIndex
in interfaceCallable
-