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 FunctionTypeprivate final Stringprivate final Moduleprivate final WasmType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()protected ModuleintresolveIndex(WasmValue.ExportContext context) resolveResultType(WasmValue.ExportContext context) toTable()voidwriteTo(TextWriter textWriter, Module aModule, WasmValue.ExportContext exportContext) 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
public void writeTo(TextWriter textWriter, Module aModule, WasmValue.ExportContext exportContext) throws IOException - Specified by:
writeToin interfaceImportable- Throws:
IOException
-
getModule
-
getFunctionType
-
getLabel
-
getParams
-
getResultType
-
toTable
-
resolveResultType
- Specified by:
resolveResultTypein interfaceCallable
-
resolveIndex
- Specified by:
resolveIndexin interfaceCallable
-