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 TypeMethodDescriptionboolean
int
getCode()
The type code(typeidx) in WebAssembly.int
hashCode()
boolean
If the type is a reference type.boolean
isSubTypeOf
(AnyType type) Check if this is a sub type of given type.void
toString()
-
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:
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() -
equals
-
toString
-
getParams
-
getResults
-
setName
-