Class TypeManager.BlockType
- java.lang.Object
-
- de.inetsoftware.jwebassembly.module.TypeManager.BlockType
-
- All Implemented Interfaces:
AnyType
- Enclosing class:
- TypeManager
public static class TypeManager.BlockType extends java.lang.Object implements AnyType
A type that can use for a block
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getCode()
The type code(typeidx) in WebAssembly.java.util.List<AnyType>
getParams()
java.util.List<AnyType>
getResults()
int
hashCode()
boolean
isRefType()
If the type is a reference type.boolean
isSubTypeOf(AnyType type)
Check if this is a sub type of given type.void
setName(java.lang.String name)
java.lang.String
toString()
-
-
-
Method Detail
-
getCode
public int getCode()
The type code(typeidx) in WebAssembly. Predefined types have an negative typeidx. Custom types have the positive index in the type section.
-
isRefType
public boolean isRefType()
If the type is a reference type. A GC reference to the heap.
-
isSubTypeOf
public boolean isSubTypeOf(AnyType type)
Check if this is a sub type of given type.- Specified by:
isSubTypeOf
in interfaceAnyType
- Parameters:
type
- type to check- Returns:
- true, if both are identical or this is a sub type of
other
. Or ifother
is a parent type of this.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getParams
public java.util.List<AnyType> getParams()
-
getResults
public java.util.List<AnyType> getResults()
-
setName
public void setName(java.lang.String name)
-
-