Class: QgsEsriArcadeFunctionDeclarationStatement

Represents a function declaration statement.

For example function foo(a, b) { ... }).

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsEsriArcadeFunctionDeclarationStatement

Base classes

QgsEsriArcadeStatement

Base class for statement nodes in an Esri Arcade script.

QgsEsriArcadeNode

Represents an abstract node for an Esri Arcade script.

Constructor

__init__

Abstract Methods

clone

Methods

body

Returns the function body block.

functionName

Returns the function name.

parameters

Returns the parameter names.

class qgis.core.QgsEsriArcadeFunctionDeclarationStatement[source]

Bases: QgsEsriArcadeStatement

__init__(functionName: str | None, parameters: Iterable[str | None], body: QgsEsriArcadeBlockStatement | None)

Constructor for QgsEsriArcadeFunctionDeclarationStatement.

Ownership of body is transferred to this statement.

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

Returns the function body block.

Return type:

QgsEsriArcadeBlockStatement|None

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

QgsEsriArcadeNode|None

functionName(self) → str[source]

Returns the function name.

Return type:

str

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

Returns the parameter names.

Return type:

list[str]