Class: QgsExpressionNodeInOperator¶
- class qgis.core.QgsExpressionNodeInOperator¶
Bases:
QgsExpressionNode
An expression node for value IN or NOT IN clauses.
QgsExpressionNodeInOperator(node:
QgsExpressionNode
, list: QgsExpressionNode.NodeList, notin: bool = False) This node tests if the result ofnode
is in the result oflist
. Optionally it can be inverted withnotin
which by default isFalse
.QgsExpressionNodeInOperator(
QgsExpressionNodeInOperator
)Methods
- rtype:
QgsExpressionNode
- rtype:
str
- param parent:
Returns
True
if this node is a "NOT IN" operator, orFalse
if the node is a normal "IN" operator.- param parent:
Returns the list of nodes to search for matching values within.
Returns the expression node.
- rtype:
QgsExpressionNode.NodeType
- param parent:
- rtype:
Set[str]
- rtype:
Set[str]
- rtype:
Set[str]
- clone(self) QgsExpressionNode ¶
- Return type:
- dump(self) str ¶
- Return type:
str
- evalNode(self, parent: QgsExpression, context: QgsExpressionContext) Any ¶
- Parameters:
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type:
Any
- isNotIn(self) bool ¶
Returns
True
if this node is a “NOT IN” operator, orFalse
if the node is a normal “IN” operator.- Return type:
bool
- isStatic(self, parent: QgsExpression, context: QgsExpressionContext) bool ¶
- Parameters:
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type:
bool
- list(self) QgsExpressionNode.NodeList ¶
Returns the list of nodes to search for matching values within.
- Return type:
- node(self) QgsExpressionNode ¶
Returns the expression node.
- Return type:
- nodeType(self) QgsExpressionNode.NodeType ¶
- Return type:
- prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) bool ¶
- Parameters:
parent (QgsExpression) –
context (QgsExpressionContext) –
- 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]