Class StructSubtype
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.StructType
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.StructSubtype
-
- All Implemented Interfaces:
ReferencableType
,WasmType
public class StructSubtype extends StructType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.StructType
StructType.Field
-
-
Field Summary
Fields Modifier and Type Field Description protected StructType
supertype
-
Fields inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.StructType
fields, name, typesSection
-
-
Constructor Summary
Constructors Constructor Description StructSubtype(TypesSection section, java.lang.String name, StructType supertype, java.util.List<StructType.Field> fields)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.List<StructType.Field>
join(java.util.List<StructType.Field> a, java.util.List<StructType.Field> b)
void
writeRefTo(TextWriter writer)
void
writeTo(BinaryWriter.Writer writer)
void
writeTo(TextWriter writer)
-
Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.StructType
equals, fieldByName, getFields, getName, hashCode, index, indexOfField
-
-
-
-
Field Detail
-
supertype
protected final StructType supertype
-
-
Constructor Detail
-
StructSubtype
StructSubtype(TypesSection section, java.lang.String name, StructType supertype, java.util.List<StructType.Field> fields)
-
-
Method Detail
-
join
private static java.util.List<StructType.Field> join(java.util.List<StructType.Field> a, java.util.List<StructType.Field> b)
-
writeTo
public void writeTo(TextWriter writer)
- Specified by:
writeTo
in interfaceWasmType
- Overrides:
writeTo
in classStructType
-
writeRefTo
public void writeRefTo(TextWriter writer)
- Specified by:
writeRefTo
in interfaceWasmType
- Overrides:
writeRefTo
in classStructType
-
writeTo
public void writeTo(BinaryWriter.Writer writer) throws java.io.IOException
- Specified by:
writeTo
in interfaceWasmType
- Overrides:
writeTo
in classStructType
- Throws:
java.io.IOException
-
-