Class: QgsExpressionNodeIndexOperator

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

Bases: 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.

Parameters
clone(self) → QgsExpressionNode
Return type

QgsExpressionNode

container(self) → QgsExpressionNode

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

See also

index()

Return type

QgsExpressionNode

dump(self) → str
Return type

str

evalNode(self, parent: QgsExpression, context: QgsExpressionContext) → Any
Parameters
Return type

Any

index(self) → QgsExpressionNode

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

See also

container()

Return type

QgsExpressionNode

isStatic(self, parent: QgsExpression, context: QgsExpressionContext) → bool
Parameters
Return type

bool

needsGeometry(self) → bool
Return type

bool

nodeType(self) → QgsExpressionNode.NodeType
Return type

QgsExpressionNode.NodeType

prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) → bool
Parameters
Return type

bool

referencedColumns(self) → Set[str]
Return type

Set[str]

referencedFunctions(self) → Set[str]
Return type

Set[str]

referencedVariables(self) → Set[str]
Return type

Set[str]