Class: QgsExpressionNodeInOperator

class qgis.core.QgsExpressionNodeInOperator(node: QgsExpressionNode, list: QgsExpressionNode.NodeList, notin: bool = False)

Bases: QgsExpressionNode

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.

QgsExpressionNodeInOperator(QgsExpressionNodeInOperator)

An expression node for value IN or NOT IN clauses.

Parameters
clone(self)QgsExpressionNode
Return type

QgsExpressionNode

dump(self) → str
Return type

str

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

Any

isNotIn(self) → bool

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

Return type

bool

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

bool

list(self)QgsExpressionNode.NodeList

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

Return type

QgsExpressionNode.NodeList

node(self)QgsExpressionNode

Returns the expression node.

Return type

QgsExpressionNode

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]