Class FunctionType
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.FunctionType
- All Implemented Interfaces:
ReferencableType
,WasmType
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFunctionType
(TypesSection section, WasmType resultType) FunctionType
(TypesSection section, List<WasmType> parameter) FunctionType
(TypesSection section, List<WasmType> parameter, WasmType resultType) -
Method Summary
Modifier and TypeMethodDescriptionint
index()
boolean
isVoid()
boolean
boolean
boolean
void
writeRefTo
(TextWriter writer) void
writeTo
(BinaryWriter.Writer writer) void
writeTo
(TextWriter writer)
-
Field Details
-
typesSection
-
parameter
-
resultType
-
-
Constructor Details
-
FunctionType
FunctionType(TypesSection section, List<WasmType> parameter, WasmType resultType) -
FunctionType
FunctionType(TypesSection section, List<WasmType> parameter) -
FunctionType
FunctionType(TypesSection section, WasmType resultType)
-
-
Method Details
-
matches
-
matches
-
matches
-
isVoid
public boolean isVoid() -
getResultType
-
getParameter
-
writeTo
-
writeRefTo
- Specified by:
writeRefTo
in interfaceWasmType
-
writeTo
- Specified by:
writeTo
in interfaceWasmType
- Throws:
IOException
-
index
public int index()
-