Class: QgsEsriArcadeMemberAccessExpression¶
Represents a member access expression using dot or bracket notation.
For example $feature.ATTRIBUTE. or my_dict["ATTRIBUTE"] for
accessing members of a dictionary.
Arcade also supports a “?.” accessor which performs a “safe access”,
where null values are returned when the container itself is null. For
these “?.” forms isSafeAccess() will return True.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Base class for expression nodes in an Esri Arcade script. |
|
Represents an abstract node for an Esri Arcade script. |
Constructor
Abstract Methods
Methods
Returns the container expression being accessed. |
|
Returns |
|
Returns the member attribute name. |
|
Sets whether member access uses the safe access operator "?.". |
- class qgis.core.QgsEsriArcadeMemberAccessExpression[source]¶
Bases:
QgsEsriArcadeExpression- __init__(containerExpression: QgsEsriArcadeExpression | None, memberName: str | None, isSafeAccess: bool = False)¶
Constructor for QgsEsriArcadeMemberAccessExpression.
Ownership of
containerExpressionis transferred to this expression.- Parameters:
containerExpression (QgsEsriArcadeExpression|None)
memberName (str|None)
isSafeAccess (bool = False)
- abstract clone(self) QgsEsriArcadeNode | None[source]¶
- Return type:
QgsEsriArcadeNode|None
- containerExpression(self) QgsEsriArcadeExpression | None[source]¶
Returns the container expression being accessed.
- Return type: