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

QgsExpressionNodeInOperator(QgsExpressionNodeInOperator)

Methods

clone

rtype

QgsExpressionNode

dump

rtype

str

evalNode

param parent

isNotIn

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

isStatic

param parent

list

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

node

Returns the expression node.

nodeType

rtype

QgsExpressionNode.NodeType

prepareNode

param parent

referencedColumns

rtype

Set[str]

referencedFunctions

rtype

Set[str]

referencedVariables

rtype

Set[str]

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]