Class Element

java.lang.Object
com.dylibso.chicory.wasm.types.Element
Direct Known Subclasses:
ActiveElement, DeclarativeElement, PassiveElement

public abstract class Element extends Object
An element, used to initialize table ranges.
  • Method Details

    • type

      public ValueType type()
      Returns:
      the type of the element values
    • initializers

      public List<List<Instruction>> initializers()
      Returns:
      the list of instruction lists which are used to initialize each element in the range
    • elementCount

      public int elementCount()
      This value is equal to the number of initializers present.
      Returns:
      the number of elements defined by this section
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object