Package com.dylibso.chicory.wasm.types
Class ActiveElement
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Element
-
- com.dylibso.chicory.wasm.types.ActiveElement
-
public final class ActiveElement extends Element
An active element. An active element copies its elements into a table during initialization of that table.
-
-
Constructor Summary
Constructors Constructor Description ActiveElement(ValueType type, List<List<Instruction>> initializers, int tableIndex, List<Instruction> offset)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Instruction>offset(){@return a constant expression defining the offset into the table}inttableIndex(){@return the table to actively initialize}-
Methods inherited from class com.dylibso.chicory.wasm.types.Element
elementCount, initializers, type
-
-
-
-
Constructor Detail
-
ActiveElement
public ActiveElement(ValueType type, List<List<Instruction>> initializers, int tableIndex, List<Instruction> offset)
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)tableIndex- the index of the table which is to be initializedoffset- the list of instructions which give the offset into the table (must not benull)
-
-
Method Detail
-
tableIndex
public int tableIndex()
{@return the table to actively initialize}
-
offset
public List<Instruction> offset()
{@return a constant expression defining the offset into the table}
-
-