Class: QgsExpressionNodeIndexOperator

class qgis.core.QgsExpressionNodeIndexOperator

Bases: QgsExpressionNode

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

New in version 3.6.

QgsExpressionNodeIndexOperator(container: QgsExpressionNode, index: QgsExpressionNode) Constructor for QgsExpressionNodeIndexOperator.

QgsExpressionNodeIndexOperator(QgsExpressionNodeIndexOperator)

Methods

clone

rtype

QgsExpressionNode

container

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

dump

rtype

str

evalNode

param parent

index

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

isStatic

param parent

needsGeometry

rtype

bool

nodeType

rtype

QgsExpressionNode.NodeType

prepareNode

param parent

referencedColumns

rtype

Set[str]

referencedFunctions

rtype

Set[str]

referencedVariables

rtype

Set[str]

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]