ValueOpcodeXArrayInsert

class dsviper.ValueOpcodeXArrayInsert

Bases: ValueOpcode

Inserts a position into the xarray at a path, before another one.

Note: Not directly instantiable.

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

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

before_position() → ValueUUId

Return the position the new one is inserted before.

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_Insert’, the name of this opcode’s kind.