Class: QgsEsriArcadeVariableDeclarationStatement¶
Represents a variable declaration statement.
For example var x = 3;.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for statement nodes in an Esri Arcade script. |
|
Represents an abstract node for an Esri Arcade script. |
Constructor
Abstract Methods
Methods
Returns the optional initializer expression, or |
|
Returns the declared variable name. |
- class qgis.core.QgsEsriArcadeVariableDeclarationStatement[source]¶
Bases:
QgsEsriArcadeStatement- __init__(variableName: str | None, initializer: QgsEsriArcadeExpression | None = None)¶
Constructor for QgsEsriArcadeVariableDeclarationStatement.
Ownership of
initializeris transferred to this statement.- Parameters:
variableName (str|None)
initializer (QgsEsriArcadeExpression|None = None)
- abstract clone(self) QgsEsriArcadeNode | None[source]¶
- Return type:
QgsEsriArcadeNode|None
- initializer(self) QgsEsriArcadeExpression | None[source]¶
Returns the optional initializer expression, or
Noneif uninitialized.For the statement
var my_var = 3 * 2;this would return the3 * 2expression node.- Return type: