Class: QgsVbScriptUnaryOperatorExpression

Represents a unary operation expression.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptUnaryOperatorExpression

Base classes

QgsVbScriptExpression

Base class for expression nodes in a VBScript script.

QgsVbScriptNode

Represents an abstract node for a VBScript script.

Constructor

__init__

Enums

UnaryOperator

Unary operator enumeration.

Abstract Methods

clone

Methods

operand

Returns the operand expression.

text

Returns text representation of the operator.

unaryOperator

Returns the unary operator.

class qgis.core.QgsVbScriptUnaryOperatorExpression[source]

Bases: QgsVbScriptExpression

__init__(unaryOperator: QgsVbScriptUnaryOperatorExpression.UnaryOperator, operand: QgsVbScriptExpression | None)

Constructor for QgsVbScriptUnaryOperatorExpression.

Ownership of operand is transferred to this expression.

Parameters:
class UnaryOperator(*values)

Bases: Enum

Unary operator enumeration.

  • Not: Logical Not

  • Minus: Minus operator, -

  • Plus: Plus operator, +

Minus = 1
Not = 0
Plus = 2
abstract clone(self) → QgsVbScriptNode | None[source]
Return type:

QgsVbScriptNode|None

operand(self) → QgsVbScriptExpression | None[source]

Returns the operand expression.

Return type:

QgsVbScriptExpression|None

text(self) → str[source]

Returns text representation of the operator.

Return type:

str

unaryOperator(self) → QgsVbScriptUnaryOperatorExpression.UnaryOperator[source]

Returns the unary operator.

Return type:

QgsVbScriptUnaryOperatorExpression.UnaryOperator