Class: QgsExpressionNodeIndexOperator¶
An indexing expression operator, which allows use of square brackets [] to reference map and array items.
Added in version 3.6.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Abstract base class for all nodes that can appear in an expression. |
Methods
Returns the container node, representing an array or map value. |
|
Returns the index node, representing an array element index or map key. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsExpressionNodeIndexOperator. See the FAQ for more details.
- class qgis.core.QgsExpressionNodeIndexOperator[source]¶
Bases:
QgsExpressionNode- __init__(container: QgsExpressionNode | None, index: QgsExpressionNode | None)
Constructor for QgsExpressionNodeIndexOperator.
- Parameters:
container (Optional[QgsExpressionNode])
index (Optional[QgsExpressionNode])
- container(self) QgsExpressionNode | None[source]¶
Returns the container node, representing an array or map value.
See also
- Return type:
- virtual evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
- index(self) QgsExpressionNode | None[source]¶
Returns the index node, representing an array element index or map key.
See also
- Return type:
- virtual prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
bool