Class StructTypeEntry
- java.lang.Object
-
- de.inetsoftware.jwebassembly.binary.SectionEntry
-
- de.inetsoftware.jwebassembly.binary.TypeEntry
-
- de.inetsoftware.jwebassembly.binary.StructTypeEntry
-
class StructTypeEntry extends TypeEntry
An struct type entry in the type section of the WebAssembly.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NamedStorageType>fields
-
Constructor Summary
Constructors Constructor Description StructTypeEntry(java.util.List<NamedStorageType> fields)Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)(package private) ValueTypegetTypeForm()Get the form of the type.inthashCode()(package private) voidwriteSectionEntryDetails(WasmOutputStream stream)Write this single entry to a section-
Methods inherited from class de.inetsoftware.jwebassembly.binary.TypeEntry
writeSectionEntry
-
-
-
-
Field Detail
-
fields
private final java.util.List<NamedStorageType> fields
-
-
Constructor Detail
-
StructTypeEntry
StructTypeEntry(java.util.List<NamedStorageType> fields)
Create a new instance.- Parameters:
fields- the fields of the struct
-
-
Method Detail
-
getTypeForm
ValueType getTypeForm()
Get the form of the type.- Specified by:
getTypeFormin classTypeEntry- Returns:
- the form
-
writeSectionEntryDetails
void writeSectionEntryDetails(WasmOutputStream stream) throws java.io.IOException
Write this single entry to a section- Specified by:
writeSectionEntryDetailsin classTypeEntry- Parameters:
stream- the target- Throws:
java.io.IOException- if any I/O error occur
-
-