ValueOpcodeXArrayRemove

class dsviper.ValueOpcodeXArrayRemove

Bases: ValueOpcode

Removes the element at a position of the xarray at a path. The position is kept, addressing nothing, as ValueXArray.remove keeps it.

Note: Not directly instantiable.

arguments(definitions: DefinitionsConst) → Tuple[Attachment, ValueKey, PathConst, ValueUUId]

Return (attachment, key, path, position), resolving the ids the opcode carries against definitions.

key() → ValueOpcodeKey

Return the ValueOpcodeKey the opcode applies to - the attachment, the instance and its concept.

path() → PathConst

Return the Path inside the document the opcode writes at.

position() → ValueUUId

Return the position in the xarray the opcode acts on.

type() → str

Return ‘XArray_Remove’, the name of this opcode’s kind.