Class TypesSection
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.ModuleSection
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.TypesSection
-
public class TypesSection extends ModuleSection
-
-
Constructor Summary
Constructors Constructor Description TypesSection(Module aModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayType
arrayType(WasmType elementType)
FunctionType
functionType(WasmType returnType)
FunctionType
functionType(java.util.List<WasmType> arguments)
FunctionType
functionType(java.util.List<WasmType> arguments, WasmType returnType)
int
indexOf(WasmType type)
(package private) <T extends WasmType>
Tregister(T wasmType)
StructSubtype
structSubtype(java.lang.String name, StructType superType, java.util.List<StructType.Field> fields)
StructType
structType(java.lang.String name, java.util.List<StructType.Field> fields)
StructType
structTypeByName(java.lang.String name)
java.util.List<StructType>
structTypes()
void
writeTo(BinaryWriter binaryWriter)
void
writeTo(TextWriter textWriter)
-
Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.ModuleSection
getModule
-
-
-
-
Field Detail
-
types
private final java.util.List<WasmType> types
-
-
Constructor Detail
-
TypesSection
TypesSection(Module aModule)
-
-
Method Detail
-
functionType
public FunctionType functionType(java.util.List<WasmType> arguments, WasmType returnType)
-
functionType
public FunctionType functionType(java.util.List<WasmType> arguments)
-
functionType
public FunctionType functionType(WasmType returnType)
-
structType
public StructType structType(java.lang.String name, java.util.List<StructType.Field> fields)
-
structSubtype
public StructSubtype structSubtype(java.lang.String name, StructType superType, java.util.List<StructType.Field> fields)
-
register
<T extends WasmType> T register(T wasmType)
-
indexOf
public int indexOf(WasmType type)
-
writeTo
public void writeTo(TextWriter textWriter)
-
writeTo
public void writeTo(BinaryWriter binaryWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
structTypeByName
public StructType structTypeByName(java.lang.String name)
-
structTypes
public java.util.List<StructType> structTypes()
-
-