Class: QgsExpressionNodeUnaryOperator¶
-
class
qgis.core.
QgsExpressionNodeUnaryOperator
(op: QgsExpressionNodeUnaryOperator.UnaryOperator, operand: QgsExpressionNode)¶ Bases:
qgis._core.QgsExpressionNode
A node unary operator is modifying the value of
operand
by negating it withop
.QgsExpressionNodeUnaryOperator(QgsExpressionNodeUnaryOperator)
A unary node is either negative as in boolean (not) or as in numbers (minus).
Enums
Methods
Returns the unary operator.
Returns the node the operator will operate upon.
Returns a the name of this operator without the operands.
Signals
Attributes
-
class
UnaryOperator
¶ Bases:
int
-
clone
(self) → QgsExpressionNode¶
-
dump
(self) → str¶
-
evalNode
(self, parent: QgsExpression, context: QgsExpressionContext) → Any¶
-
isStatic
(self, parent: QgsExpression, context: QgsExpressionContext) → bool¶
-
nodeType
(self) → QgsExpressionNode.NodeType¶
-
op
(self) → QgsExpressionNodeUnaryOperator.UnaryOperator¶ Returns the unary operator.
-
operand
(self) → QgsExpressionNode¶ Returns the node the operator will operate upon.
-
prepareNode
(self, parent: QgsExpression, context: QgsExpressionContext) → bool¶
-
referencedColumns
(self) → Set[str]¶
-
referencedFunctions
(self) → Set[str]¶
-
referencedVariables
(self) → Set[str]¶
-
text
(self) → str¶ Returns a the name of this operator without the operands. I.e. “NOT” or “-“
-
uoMinus
= 1¶
-
uoNot
= 0¶
-
class