Class: QgsExpressionNodeInOperator¶
An expression node for value IN or NOT IN clauses.
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 |
|
Returns the list of nodes to search for matching values within. |
|
Returns the expression node. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsExpressionNodeInOperator. See the FAQ for more details.
- class qgis.core.QgsExpressionNodeInOperator[source]¶
Bases:
QgsExpressionNode- __init__(node: QgsExpressionNode | None, list: QgsExpressionNode.NodeList | None, notin: bool = False)
This node tests if the result of
nodeis in the result oflist. Optionally it can be inverted withnotinwhich by default isFalse.- Parameters:
node (Optional[QgsExpressionNode])
list (Optional[QgsExpressionNode.NodeList])
notin (bool = False)
- virtual evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
- isNotIn(self) bool[source]¶
Returns
Trueif this node is a “NOT IN” operator, orFalseif the node is a normal “IN” operator.- Return type:
bool
- list(self) QgsExpressionNode.NodeList | None[source]¶
Returns the list of nodes to search for matching values within.
- Return type:
- node(self) QgsExpressionNode | None[source]¶
Returns the expression node.
- Return type:
- virtual prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
bool