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 Object implements AnyType
A type that can use for a block
  • Field Details

  • Constructor Details

  • 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.
      Specified by:
      getCode in interface AnyType
      Returns:
      the code
    • isRefType

      public boolean isRefType()
      If the type is a reference type. A GC reference to the heap.
      Specified by:
      isRefType in interface AnyType
      Returns:
      true, is GC type
    • isSubTypeOf

      public boolean isSubTypeOf(AnyType type)
      Check if this is a sub type of given type.
      Specified by:
      isSubTypeOf in interface AnyType
      Parameters:
      type - type to check
      Returns:
      true, if both are identical or this is a sub type of other. Or if other is a parent type of this.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getParams

      public List<AnyType> getParams()
    • getResults

      public List<AnyType> getResults()
    • setName

      public void setName(String name)