Subgroup: Expression
Class: QgsExpressionNodeCondition¶
-
class
qgis.core.
QgsExpressionNodeCondition
(conditions: object, elseExp: QgsExpressionNode = None)¶ Bases:
qgis._core.QgsExpressionNode
Create a new node with the given list of
conditions
and an optionalelseExp
expression.QgsExpressionNodeCondition(QgsExpressionNodeCondition)
An expression node for CASE WHEN clauses.
Methods
clone
conditions
The list of WHEN THEN expression parts of the expression. dump
elseExp
The ELSE expression used for the condition. evalNode
isStatic
needsGeometry
nodeType
prepareNode
referencedColumns
referencedFunctions
referencedVariables
Signals
Attributes
-
class
WhenThen
(whenExp: QgsExpressionNode, thenExp: QgsExpressionNode)¶ Bases:
sip.wrapper
A combination of when and then. Simple as that.
Represents a “WHEN… THEN…” portation of a CASE WHEN clause in an expression.
-
clone
(self) → QgsExpressionNodeCondition.WhenThen¶ Gets a deep copy of this WhenThen combination.
-
thenExp
(self) → QgsExpressionNode¶ The expression node that makes the THEN result part of the condition.
Returns: The expression node that makes the THEN result part of the condition.
-
whenExp
(self) → QgsExpressionNode¶ The expression that makes the WHEN part of the condition.
Returns: The expression node that makes the WHEN part of the condition check.
-
-
clone
(self) → QgsExpressionNode¶
-
conditions
(self) → object¶ The list of WHEN THEN expression parts of the expression.
Returns: The list of WHEN THEN expression parts of the expression.
-
dump
(self) → str¶
-
elseExp
(self) → QgsExpressionNode¶ The ELSE expression used for the condition.
Returns: The ELSE expression used for the condition.
-
evalNode
(self, parent: QgsExpression, context: QgsExpressionContext) → Any¶
-
isStatic
(self, parent: QgsExpression, context: QgsExpressionContext) → bool¶
-
needsGeometry
(self) → bool¶
-
nodeType
(self) → QgsExpressionNode.NodeType¶
-
prepareNode
(self, parent: QgsExpression, context: QgsExpressionContext) → bool¶
-
referencedColumns
(self) → Set[str]¶
-
referencedFunctions
(self) → Set[str]¶
-
referencedVariables
(self) → Set[str]¶
-
class