Class: QgsVbScriptBlockStatement

Represents a sequence of statements.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptBlockStatement

Base classes

QgsVbScriptStatement

Base class for statement nodes in a VBScript script.

QgsVbScriptNode

Represents an abstract node for a VBScript script.

Constructor

__init__

Abstract Methods

clone

Methods

appendStatement

Appends a statement to the block.

count

Returns the number of statements in this block.

statements

Returns the list of statements contained within this block.

class qgis.core.QgsVbScriptBlockStatement[source]

Bases: QgsVbScriptStatement

__init__()
__init__(statements: Iterable[QgsVbScriptStatement])

Constructor for QgsVbScriptBlockStatement with an existing statement list.

Ownership of all statements is transferred to this block.

Parameters:

statements (Iterable[QgsVbScriptStatement])

appendStatement(self, statement: QgsVbScriptStatement | None)[source]

Appends a statement to the block.

Ownership of statement is transferred to this block.

Parameters:

statement (QgsVbScriptStatement|None)

abstract clone(self) → QgsVbScriptNode | None[source]
Return type:

QgsVbScriptNode|None

count(self) → int[source]

Returns the number of statements in this block.

Return type:

int

statements(self) → list[QgsVbScriptStatement]

Returns the list of statements contained within this block.

Return type:

list[QgsVbScriptStatement]