Subgroup: Expression
Class: QgsExpressionNodeUnaryOperator¶
-
class
qgis.core.
QgsExpressionNodeUnaryOperator
¶ Bases:
qgis._core.QgsExpressionNode
A unary node is either negative as in boolean (not) or as in numbers (minus).
Methods
clone
dump
eval
Evaluate this node with the given context and parent. evalNode
isStatic
needsGeometry
nodeType
op
operand
prepare
Prepare this node for evaluation. prepareNode
referencedColumns
referencedVariables
text
Returns a the name of this operator without the operands. Attributes
ntBinaryOperator
ntColumnRef
ntCondition
ntFunction
ntInOperator
ntLiteral
ntUnaryOperator
uoMinus
uoNot
-
class
UnaryOperator
¶ Bases:
int
-
clone
(self) → QgsExpressionNode¶
-
dump
(self) → str¶
-
evalNode
(self, parent: QgsExpression, context: QgsExpressionContext) → Any¶
-
isStatic
(self, parent: QgsExpression, context: QgsExpressionContext) → bool¶
-
needsGeometry
(self) → bool¶
-
nodeType
(self) → QgsExpressionNode.NodeType¶
-
op
(self) → QgsExpressionNodeUnaryOperator.UnaryOperator¶
-
operand
(self) → QgsExpressionNode¶
-
prepareNode
(self, parent: QgsExpression, context: QgsExpressionContext) → bool¶
-
referencedColumns
(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