Class StructType
java.lang.Object
de.mirkosertic.bytecoder.core.backend.wasm.ast.StructType
- All Implemented Interfaces:
ReferencableType
,WasmType
- Direct Known Subclasses:
StructSubtype
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List
<StructType.Field> protected final String
protected final TypesSection
-
Constructor Summary
ConstructorsConstructorDescriptionStructType
(TypesSection section, String name, List<StructType.Field> fields) -
Method Summary
Modifier and TypeMethodDescriptionboolean
fieldByName
(String fieldName) getName()
int
hashCode()
int
index()
int
indexOfField
(String fieldName) void
writeRefTo
(TextWriter writer) void
writeTo
(BinaryWriter.Writer writer) void
writeTo
(TextWriter writer)
-
Field Details
-
typesSection
-
name
-
fields
-
-
Constructor Details
-
StructType
StructType(TypesSection section, String name, List<StructType.Field> fields)
-
-
Method Details
-
getName
-
writeTo
-
writeRefTo
- Specified by:
writeRefTo
in interfaceWasmType
-
writeTo
- Specified by:
writeTo
in interfaceWasmType
- Throws:
IOException
-
index
public int index() -
getFields
-
equals
-
hashCode
public int hashCode() -
indexOfField
-
fieldByName
-