Class: QgsExpressionNodeIndexOperator

class qgis.core.QgsExpressionNodeIndexOperator(container: QgsExpressionNode, index: QgsExpressionNode)

Bases: qgis._core.QgsExpressionNode

Constructor for QgsExpressionNodeIndexOperator.

QgsExpressionNodeIndexOperator(QgsExpressionNodeIndexOperator)

A indexing expression operator, which allows use of square brackets [] to reference map and array items.

New in version 3.6: Methods

clone
container Returns the container node, representing an array or map value.
dump
evalNode
index Returns the index node, representing an array element index or map key.
isStatic
needsGeometry
nodeType
prepareNode
referencedColumns
referencedFunctions
referencedVariables

Signals

Attributes

clone(self) → QgsExpressionNode
container(self) → QgsExpressionNode

Returns the container node, representing an array or map value.

See also

index()

dump(self) → str
evalNode(self, parent: QgsExpression, context: QgsExpressionContext) → Any
index(self) → QgsExpressionNode

Returns the index node, representing an array element index or map key.

See also

container()

isStatic(self, parent: QgsExpression, context: QgsExpressionContext) → bool
needsGeometry(self) → bool
nodeType(self) → QgsExpressionNode.NodeType
prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) → bool
referencedColumns(self) → Set[str]
referencedFunctions(self) → Set[str]
referencedVariables(self) → Set[str]