Class TypeManager.BlockType
java.lang.Object
de.inetsoftware.jwebassembly.module.TypeManager.BlockType
- All Implemented Interfaces:
AnyType
- Enclosing class:
TypeManager
A type that can use for a block
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetCode()The type code(typeidx) in WebAssembly.inthashCode()booleanIf the type is a reference type.booleanisSubTypeOf(AnyType type) Check if this is a sub type of given type.voidtoString()
-
Field Details
-
params
-
results
-
code
private int code -
name
-
-
Constructor Details
-
BlockType
-
-
Method Details
-
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
Check if this is a sub type of given type.- Specified by:
isSubTypeOfin interfaceAnyType- Parameters:
type- type to check- Returns:
- true, if both are identical or this is a sub type of
other. Or ifotheris a parent type of this.
-
hashCode
public int hashCode() -
equals
-
toString
-
getParams
-
getResults
-
setName
-