|
QGIS API Documentation 4.3.0-Master (bd2f5e21fd1)
|
Represents a variable reassignment statement. More...
#include <qgsesriarcadescript.h>

Public Types | |
| enum class | AssignmentOperator { Assign , PlusAssign , MinusAssign , MultiplyAssign , DivideAssign } |
| Assignment operator types. 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 | |
| QgsEsriArcadeAssignmentStatement (AssignmentOperator assignmentOperator, QgsEsriArcadeExpression *target, QgsEsriArcadeExpression *value) | |
| Constructor for QgsEsriArcadeAssignmentStatement. | |
| void | accept (QgsEsriArcadeVisitor &visitor) const override |
| Accepts a visitor to traverse the node. | |
| AssignmentOperator | assignmentOperator () const |
| Returns the assignment operator. | |
| QgsEsriArcadeNode * | clone () const override |
| Creates a copy of the node. | |
| QString | dump () const override |
| Returns the formatted script representation of the node. | |
| QgsEsriArcadeNode::NodeType | nodeType () const override |
| Returns the node type. | |
| QgsEsriArcadeExpression * | target () const |
| Returns the target expression being assigned to. | |
| QgsEsriArcadeExpression * | value () const |
| Returns the assigned value expression. | |
| Public Member Functions inherited from QgsEsriArcadeStatement | |
| ~QgsEsriArcadeStatement () override=default | |
| Public Member Functions inherited from QgsEsriArcadeNode | |
| virtual | ~QgsEsriArcadeNode ()=default |
Static Public Attributes | |
| static const char * | ASSIGNMENT_OPERATOR_TEXT [] = { "=", "+=", "-=", "*=", "/=" } |
Represents a variable reassignment statement.
For example, age = "35 years";.
Definition at line 339 of file qgsesriarcadescript.h.
|
strong |
Assignment operator types.
Definition at line 345 of file qgsesriarcadescript.h.
| QgsEsriArcadeAssignmentStatement::QgsEsriArcadeAssignmentStatement | ( | AssignmentOperator | assignmentOperator, |
| QgsEsriArcadeExpression * | target, | ||
| QgsEsriArcadeExpression * | value ) |
Constructor for QgsEsriArcadeAssignmentStatement.
Ownership of target and value is transferred to this statement.
Definition at line 113 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsEsriArcadeNode.
Definition at line 131 of file qgsesriarcadescript.cpp.
|
inline |
Returns the assignment operator.
Definition at line 382 of file qgsesriarcadescript.h.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsEsriArcadeNode.
Definition at line 124 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 119 of file qgsesriarcadescript.cpp.
|
inlineoverridevirtual |
Returns the node type.
Implements QgsEsriArcadeNode.
Definition at line 364 of file qgsesriarcadescript.h.
|
inline |
Returns the target expression being assigned to.
Definition at line 372 of file qgsesriarcadescript.h.
|
inline |
Returns the assigned value expression.
Definition at line 377 of file qgsesriarcadescript.h.
|
static |
Definition at line 35 of file qgsesriarcadescript.h.