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 oflist
. Optionally it can be inverted withnotin
which by default isFalse
.QgsExpressionNodeInOperator(
QgsExpressionNodeInOperator
)An expression node for value IN or NOT IN clauses.
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]