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

Public Member Functions | |
| QgsEsriArcadeIfStatement (QgsEsriArcadeExpression *condition, QgsEsriArcadeBlockStatement *trueBlock, QgsEsriArcadeBlockStatement *falseBlock=nullptr) | |
| Constructor for QgsEsriArcadeIfStatement. | |
| void | accept (QgsEsriArcadeVisitor &visitor) const override |
| Accepts a visitor to traverse the node. | |
| QgsEsriArcadeNode * | clone () const override |
| Creates a copy of the node. | |
| QgsEsriArcadeExpression * | condition () const |
| Returns the condition expression. | |
| QString | dump () const override |
| Returns the formatted script representation of the node. | |
| QgsEsriArcadeBlockStatement * | falseBlock () const |
Returns the statement block executed when the condition evaluates to false, or nullptr if none. | |
| QgsEsriArcadeNode::NodeType | nodeType () const override |
| Returns the node type. | |
| QgsEsriArcadeBlockStatement * | trueBlock () const |
Returns the statement block executed when the condition evaluates to true. | |
| Public Member Functions inherited from QgsEsriArcadeStatement | |
| ~QgsEsriArcadeStatement () override=default | |
| Public Member Functions inherited from QgsEsriArcadeNode | |
| virtual | ~QgsEsriArcadeNode ()=default |
Additional Inherited Members | |
| 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... | |
| QgsEsriArcadeIfStatement::QgsEsriArcadeIfStatement | ( | QgsEsriArcadeExpression * | condition, |
| QgsEsriArcadeBlockStatement * | trueBlock, | ||
| QgsEsriArcadeBlockStatement * | falseBlock = nullptr ) |
Constructor for QgsEsriArcadeIfStatement.
Ownership of condition, trueBlock, and falseBlock is transferred to this statement.
Definition at line 641 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsEsriArcadeNode.
Definition at line 668 of file qgsesriarcadescript.cpp.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsEsriArcadeNode.
Definition at line 660 of file qgsesriarcadescript.cpp.
|
inline |
Returns the condition expression.
Definition at line 1098 of file qgsesriarcadescript.h.
|
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 647 of file qgsesriarcadescript.cpp.
|
inline |
Returns the statement block executed when the condition evaluates to false, or nullptr if none.
Definition at line 1108 of file qgsesriarcadescript.h.
|
inlineoverridevirtual |
Returns the node type.
Implements QgsEsriArcadeNode.
Definition at line 1090 of file qgsesriarcadescript.h.
|
inline |
Returns the statement block executed when the condition evaluates to true.
Definition at line 1103 of file qgsesriarcadescript.h.