ValueOpcodeXArrayUpdate

class dsviper.ValueOpcodeXArrayUpdate

Bases: ValueOpcode

Writes a value at a position of the xarray at a path.

Note: Not directly instantiable.

arguments(definitions: DefinitionsConst, *, encoded: Literal[True] = True) → tuple[Attachment, ValueKey, PathConst, ValueUUId, _OutputValues]

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

encoded=False returns a Value rather than a native object.

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

value() → Value

Return the value the opcode writes at position.