Class: QgsVbScriptBinaryOperatorExpression¶
Represents a binary operation expression.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for expression nodes in a VBScript script. |
|
Represents an abstract node for a VBScript script. |
Constructor
Enums
Binary operator enumeration. |
Abstract Methods
Methods
Returns the binary operator. |
|
Returns |
|
Returns the left-hand operand expression. |
|
Returns operator precedence value. |
|
Returns the right-hand operand expression. |
|
Returns text representation of the operator. |
- class qgis.core.QgsVbScriptBinaryOperatorExpression[source]¶
Bases:
QgsVbScriptExpression- __init__(binaryOperator: QgsVbScriptBinaryOperatorExpression.BinaryOperator, leftOperand: QgsVbScriptExpression | None, rightOperand: QgsVbScriptExpression | None)¶
Constructor for QgsVbScriptBinaryOperatorExpression.
Ownership of
leftOperandandrightOperandis transferred to this expression.- Parameters:
binaryOperator (QgsVbScriptBinaryOperatorExpression.BinaryOperator)
leftOperand (QgsVbScriptExpression|None)
rightOperand (QgsVbScriptExpression|None)
- class BinaryOperator(*values)¶
Bases:
EnumBinary operator enumeration.
Plus: Addition +Minus: Subtraction -Multiply: Multiplication *Divide: Division /IntegerDivide: Integer divisionModulo: Modulo %Exponent: Exponential ^Concat: String concatenation &Equal: Equality test ==NotEqual: Not equal test !=LessThan: Less than <GreaterThan: Greater than >LessThanOrEqual: Less than or equal to <=GreaterThanOrEqual: Greater than or equal to >=Is: Is comparisonLogicalAnd: Logical andLogicalOr: Logical orLogicalXor: Logical xorLogicalImp: Logical impLogicalEqv: Logical eqv
- Concat = 7¶
- Divide = 3¶
- Equal = 8¶
- Exponent = 6¶
- GreaterThan = 11¶
- GreaterThanOrEqual = 13¶
- IntegerDivide = 4¶
- Is = 14¶
- LessThan = 10¶
- LessThanOrEqual = 12¶
- LogicalAnd = 15¶
- LogicalEqv = 19¶
- LogicalImp = 18¶
- LogicalOr = 16¶
- LogicalXor = 17¶
- Minus = 1¶
- Modulo = 5¶
- Multiply = 2¶
- NotEqual = 9¶
- Plus = 0¶
- binaryOperator(self) QgsVbScriptBinaryOperatorExpression.BinaryOperator[source]¶
Returns the binary operator.
- Return type:
- abstract clone(self) QgsVbScriptNode | None[source]¶
- Return type:
QgsVbScriptNode|None
- leftOperand(self) QgsVbScriptExpression | None[source]¶
Returns the left-hand operand expression.
- Return type:
- rightOperand(self) QgsVbScriptExpression | None[source]¶
Returns the right-hand operand expression.
- Return type: