Class: QgsVbScriptFunctionDeclarationStatement

Represents a function declaration statement.

For example function foo(a, b) ... end function.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsVbScriptFunctionDeclarationStatement

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

body

Returns the function body block.

functionName

Returns the function name.

isSub

Returns True if this is a Sub procedure rather than a Function.

parameters

Returns the parameter names.

class qgis.core.QgsVbScriptFunctionDeclarationStatement[source]

Bases: QgsVbScriptStatement

__init__(functionName: str | None, parameters: Iterable[str | None], body: QgsVbScriptBlockStatement | None, isSub: bool = False)

Constructor for QgsVbScriptFunctionDeclarationStatement.

Ownership of body is transferred to this statement.

Parameters:
body(self) → QgsVbScriptBlockStatement | None[source]

Returns the function body block.

Return type:

QgsVbScriptBlockStatement|None

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

QgsVbScriptNode|None

functionName(self) → str[source]

Returns the function name.

Return type:

str

isSub(self) → bool[source]

Returns True if this is a Sub procedure rather than a Function.

Return type:

bool

parameters(self) → list[str][source]

Returns the parameter names.

Return type:

list[str]