Package com.dylibso.chicory.wasm.types
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.
-
-
Constructor Summary
Constructors Constructor Description Element(ValueType type, List<List<Instruction>> initializers)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intelementCount(){@return the number of elements defined by this section} This value is equal to the number of initializers present.List<List<Instruction>>initializers(){@return the list of instruction lists which are used to initialize each element in the range}ValueTypetype(){@return the type of the element values}
-
-
-
Constructor Detail
-
Element
public Element(ValueType type, List<List<Instruction>> initializers)
Construct a new instance.- Parameters:
type- the type of the element values (must not benull)initializers- the list of instruction lists which are used to initialize each element in the range (must not benull)
-
-
Method Detail
-
type
public ValueType type()
{@return the type of the element values}
-
initializers
public List<List<Instruction>> initializers()
{@return the list of instruction lists which are used to initialize each element in the range}
-
elementCount
public int elementCount()
{@return the number of elements defined by this section} This value is equal to the number of initializers present.
-
-