Class: QgsExpressionNodeUnaryOperator¶
- class qgis.core.QgsExpressionNodeUnaryOperator¶
Bases:
QgsExpressionNode
A unary node is either negative as in boolean (not) or as in numbers (minus).
QgsExpressionNodeUnaryOperator(op: QgsExpressionNodeUnaryOperator.UnaryOperator, operand: Optional[QgsExpressionNode]) A node unary operator is modifying the value of
operand
by negating it withop
.QgsExpressionNodeUnaryOperator(a0:
QgsExpressionNodeUnaryOperator
)Methods
- rtype:
Optional[QgsExpressionNode]
- rtype:
str
- param parent:
- param parent:
- rtype:
QgsExpressionNode.NodeType
Returns the unary operator.
Returns the node the operator will operate upon.
- param parent:
- rtype:
Set[str]
- rtype:
Set[str]
- rtype:
Set[str]
Returns a the name of this operator without the operands.
Signals
Attributes
- class UnaryOperator¶
Bases:
int
- clone(self) QgsExpressionNode | None ¶
- Return type:
Optional[QgsExpressionNode]
- dump(self) str ¶
- Return type:
str
- evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any ¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
Any
- isStatic(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool ¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
bool
- nodeType(self) QgsExpressionNode.NodeType ¶
- Return type:
- op(self) QgsExpressionNodeUnaryOperator.UnaryOperator ¶
Returns the unary operator.
- Return type:
- operand(self) QgsExpressionNode | None ¶
Returns the node the operator will operate upon.
- Return type:
Optional[QgsExpressionNode]
- prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool ¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[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]
- text(self) str ¶
Returns a the name of this operator without the operands. I.e. “NOT” or “-”
- Return type:
str
- uoMinus = 1¶
- uoNot = 0¶