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 boolean
equals(java.lang.Object obj)
(package private) ValueType
getTypeForm()
Get the form of the type.int
hashCode()
(package private) void
writeSectionEntryDetails(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:
getTypeForm
in classTypeEntry
- Returns:
- the form
-
writeSectionEntryDetails
void writeSectionEntryDetails(WasmOutputStream stream) throws java.io.IOException
Write this single entry to a section- Specified by:
writeSectionEntryDetails
in classTypeEntry
- Parameters:
stream
- the target- Throws:
java.io.IOException
- if any I/O error occur
-
-