Class: QgsExpressionNodeInOperator

An expression node for value IN or NOT IN clauses.

Class Hierarchy

Inheritance diagram of qgis.core.QgsExpressionNodeInOperator

Base classes

QgsExpressionNode

Abstract base class for all nodes that can appear in an expression.

Methods

evalNode

isNotIn

Returns True if this node is a "NOT IN" operator, or False if the node is a normal "IN" operator.

list

Returns the list of nodes to search for matching values within.

node

Returns the expression node.

prepareNode

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 node is in the result of list. Optionally it can be inverted with notin which by default is False.

Parameters:
__init__(a0: QgsExpressionNodeInOperator)
Parameters:

a0 (QgsExpressionNodeInOperator)

evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]
Parameters:
Return type:

Any

isNotIn(self) bool[source]

Returns True if this node is a “NOT IN” operator, or False if 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:

Optional[QgsExpressionNode.NodeList]

node(self) QgsExpressionNode | None[source]

Returns the expression node.

Return type:

Optional[QgsExpressionNode]

prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]
Parameters:
Return type:

bool