|
QGIS API Documentation 4.3.0-Master (0cef2469b72)
|
Represents a sequence of statements. More...
#include <qgsvbscript.h>

Public Member Functions | |
| QgsVbScriptBlockStatement ()=default | |
| QgsVbScriptBlockStatement (const QList< QgsVbScriptStatement * > &statements) | |
| Constructor for QgsVbScriptBlockStatement with an existing statement list. | |
| ~QgsVbScriptBlockStatement () override | |
| void | accept (QgsVbScriptVisitor &visitor) const override |
| Accepts a visitor to traverse the node. | |
| void | appendStatement (QgsVbScriptStatement *statement) |
| Appends a statement to the block. | |
| QgsVbScriptNode * | clone () const override |
| Creates a copy of the node. | |
| int | count () const |
| Returns the number of statements in this block. | |
| QString | dump () const override |
| Returns the formatted script representation of the node. | |
| QgsVbScriptNode::NodeType | nodeType () const override |
| Returns the node type. | |
| QList< QgsVbScriptStatement * > | statements () const |
| Returns the list of statements contained within this block. | |
| Public Member Functions inherited from QgsVbScriptStatement | |
| ~QgsVbScriptStatement () override=default | |
| Public Member Functions inherited from QgsVbScriptNode | |
| virtual | ~QgsVbScriptNode ()=default |
Additional Inherited Members | |
| Public Types inherited from QgsVbScriptNode | |
| enum class | NodeType { BlockStatement , VariableDeclarationStatement , AssignmentStatement , FunctionDeclarationStatement , ExpressionStatement , LiteralExpression , VariableReferenceExpression , MemberAccessExpression , BinaryOperatorExpression , UnaryOperatorExpression , FunctionCallExpression , IndexExpression , ArrayLiteralExpression , IfStatement , ForStatement , ForEachStatement , WhileStatement , ExitStatement , FieldReferenceExpression } |
| Node type identifier. More... | |
|
default |
|
explicit |
Constructor for QgsVbScriptBlockStatement with an existing statement list.
Ownership of all statements is transferred to this block.
Definition at line 39 of file qgsvbscript.cpp.
|
override |
Definition at line 43 of file qgsvbscript.cpp.
|
overridevirtual |
Accepts a visitor to traverse the node.
Implements QgsVbScriptNode.
Definition at line 75 of file qgsvbscript.cpp.
| void QgsVbScriptBlockStatement::appendStatement | ( | QgsVbScriptStatement * | statement | ) |
Appends a statement to the block.
Ownership of statement is transferred to this block.
Definition at line 48 of file qgsvbscript.cpp.
|
overridevirtual |
Creates a copy of the node.
Caller takes ownership of the returned object.
Implements QgsVbScriptNode.
Definition at line 64 of file qgsvbscript.cpp.
|
inline |
Returns the number of statements in this block.
Definition at line 251 of file qgsvbscript.h.
|
overridevirtual |
Returns the formatted script representation of the node.
This can be used to export a script node back to a valid VBScript string.
Implements QgsVbScriptNode.
Definition at line 53 of file qgsvbscript.cpp.
|
inlineoverridevirtual |
|
inline |
Returns the list of statements contained within this block.
Definition at line 246 of file qgsvbscript.h.