QGIS API Documentation 4.3.0-Master (0cef2469b72)
Loading...
Searching...
No Matches
QgsVbScriptBlockStatement Class Reference

Represents a sequence of statements. More...

#include <qgsvbscript.h>

Inheritance diagram for QgsVbScriptBlockStatement:

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...

Detailed Description

Represents a sequence of statements.

Since
QGIS 4.4

Definition at line 217 of file qgsvbscript.h.

Constructor & Destructor Documentation

◆ QgsVbScriptBlockStatement() [1/2]

QgsVbScriptBlockStatement::QgsVbScriptBlockStatement ( )
default

◆ QgsVbScriptBlockStatement() [2/2]

QgsVbScriptBlockStatement::QgsVbScriptBlockStatement ( const QList< QgsVbScriptStatement * > & statements)
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.

◆ ~QgsVbScriptBlockStatement()

QgsVbScriptBlockStatement::~QgsVbScriptBlockStatement ( )
override

Definition at line 43 of file qgsvbscript.cpp.

Member Function Documentation

◆ accept()

void QgsVbScriptBlockStatement::accept ( QgsVbScriptVisitor & visitor) const
overridevirtual

Accepts a visitor to traverse the node.

Implements QgsVbScriptNode.

Definition at line 75 of file qgsvbscript.cpp.

◆ appendStatement()

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.

◆ clone()

QgsVbScriptNode * QgsVbScriptBlockStatement::clone ( ) const
overridevirtual

Creates a copy of the node.

Caller takes ownership of the returned object.

Implements QgsVbScriptNode.

Definition at line 64 of file qgsvbscript.cpp.

◆ count()

int QgsVbScriptBlockStatement::count ( ) const
inline

Returns the number of statements in this block.

Definition at line 251 of file qgsvbscript.h.

◆ dump()

QString QgsVbScriptBlockStatement::dump ( ) const
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.

◆ nodeType()

QgsVbScriptNode::NodeType QgsVbScriptBlockStatement::nodeType ( ) const
inlineoverridevirtual

Returns the node type.

Implements QgsVbScriptNode.

Definition at line 231 of file qgsvbscript.h.

◆ statements()

QList< QgsVbScriptStatement * > QgsVbScriptBlockStatement::statements ( ) const
inline

Returns the list of statements contained within this block.

Definition at line 246 of file qgsvbscript.h.


The documentation for this class was generated from the following files: