|
QGIS API Documentation 4.3.0-Master (bd2f5e21fd1)
|
Represents a binary operation expression. More...
#include <qgsesriarcadescript.h>

Public Types | |
| enum class | BinaryOperator { Plus , Minus , Multiply , Divide , Modulo , Equal , NotEqual , LessThan , GreaterThan , LessThanOrEqual , GreaterThanOrEqual , LogicalAnd , LogicalOr , BitwiseAnd , BitwiseOr , BitwiseXor , BitwiseLeftShift , BitwiseSignedRightShift , BitwiseUnsignedRightShift } |
| Binary operator enumeration. More... | |
| Public Types inherited from QgsEsriArcadeNode | |
| enum class | NodeType { BlockStatement , VariableDeclarationStatement , ReturnStatement , AssignmentStatement , FunctionDeclarationStatement , ExpressionStatement , LiteralExpression , VariableReferenceExpression , ProfileVariableReferenceExpression , MemberAccessExpression , BinaryOperatorExpression , UnaryOperatorExpression , FunctionCallExpression , IndexExpression , ArrayLiteralExpression , DictionaryLiteralExpression , IfStatement , ForStatement , ForInStatement , WhileStatement , BreakStatement , ContinueStatement } |
| Node type identifier. More... | |
Public Member Functions | |
| QgsEsriArcadeBinaryOperatorExpression (BinaryOperator binaryOperator, QgsEsriArcadeExpression *leftOperand, QgsEsriArcadeExpression *rightOperand) | |
| Constructor for QgsEsriArcadeBinaryOperatorExpression. | |
| void | accept (QgsEsriArcadeVisitor &visitor) const override |
| Accepts a visitor to traverse the node. | |
| BinaryOperator | binaryOperator () const |
| Returns the binary operator. | |
| QgsEsriArcadeNode * | clone () const override |
| Creates a copy of the node. | |
| QString | dump () const override |
| Returns the formatted script representation of the node. | |
| bool | leftAssociative () const |
Returns true if operator is left-associative. | |
| QgsEsriArcadeExpression * | leftOperand () const |
| Returns the left-hand operand expression. | |
| QgsEsriArcadeNode::NodeType | nodeType () const override |
| Returns the node type. | |
| int | precedence () const |
| Returns operator precedence value. | |
| QgsEsriArcadeExpression * | rightOperand () const |
| Returns the right-hand operand expression. | |
| QString | text () const |
| Returns text representation of the operator. | |
| Public Member Functions inherited from QgsEsriArcadeExpression | |
| ~QgsEsriArcadeExpression () override=default | |
| Public Member Functions inherited from QgsEsriArcadeNode | |
| virtual | ~QgsEsriArcadeNode ()=default |
Static Public Attributes | |
| static const char * | BINARY_OPERATOR_TEXT [] = { "+", "-", "*", "/", "%", "==", "!=", "<", ">", "<=", ">=", "&&", "||", "&", "|", "^", "<<", ">>", ">>>" } |
Represents a binary operation expression.
Definition at line 686 of file qgsesriarcadescript.h.
|
strong |
Binary operator enumeration.
Definition at line 692 of file qgsesriarcadescript.h.
| QgsEsriArcadeBinaryOperatorExpression::QgsEsriArcadeBinaryOperatorExpression | ( | BinaryOperator | binaryOperator, |
| QgsEsriArcadeExpression * | leftOperand, | ||
| QgsEsriArcadeExpression * | rightOperand ) |
Constructor for QgsEsriArcadeBinaryOperatorExpression.
Ownership of leftOperand and rightOperand is transferred to this expression.
Definition at line 351 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsEsriArcadeNode.
Definition at line 423 of file qgsesriarcadescript.cpp.
|
inline |
Returns the binary operator.
Definition at line 733 of file qgsesriarcadescript.h.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsEsriArcadeNode.
Definition at line 416 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Returns the formatted script representation of the node.
This can be used to export a script node back to a valid Esri arcade script string.
Implements QgsEsriArcadeNode.
Definition at line 404 of file qgsesriarcadescript.cpp.
| bool QgsEsriArcadeBinaryOperatorExpression::leftAssociative | ( | ) | const |
Returns true if operator is left-associative.
Definition at line 399 of file qgsesriarcadescript.cpp.
|
inline |
Returns the left-hand operand expression.
Definition at line 738 of file qgsesriarcadescript.h.
|
inlineoverridevirtual |
Returns the node type.
Implements QgsEsriArcadeNode.
Definition at line 725 of file qgsesriarcadescript.h.
| int QgsEsriArcadeBinaryOperatorExpression::precedence | ( | ) | const |
Returns operator precedence value.
Definition at line 362 of file qgsesriarcadescript.cpp.
|
inline |
Returns the right-hand operand expression.
Definition at line 743 of file qgsesriarcadescript.h.
| QString QgsEsriArcadeBinaryOperatorExpression::text | ( | ) | const |
Returns text representation of the operator.
Definition at line 357 of file qgsesriarcadescript.cpp.
|
static |
Definition at line 31 of file qgsesriarcadescript.h.