Class: QgsEsriArcadeScript¶
Parses and encapsulates an entire Esri Arcade script.
Added in version 4.4.
List of all members, including inherited members
Constructor
Methods
Accepts a visitor to traverse the script abstract syntax tree. |
|
Dumps the abstract syntax tree back into an Arcade script string. |
|
Returns |
|
Returns parser error description. |
|
Returns the root block statement node, or |
|
Returns the original script text. |
Static Methods
Returns a properly quoted string literal (enclosed in double quotes with escape sequences). |
- class qgis.core.QgsEsriArcadeScript[source]¶
Bases:
object- __init__(scriptText: str | None = '')¶
Creates a new script from
scriptText.- Parameters:
scriptText (str|None = '')
- __init__(other: QgsEsriArcadeScript)
- Parameters:
other (QgsEsriArcadeScript)
- acceptVisitor(self, visitor: QgsEsriArcadeVisitor)[source]¶
Accepts a visitor to traverse the script abstract syntax tree.
- Parameters:
visitor (QgsEsriArcadeVisitor)
- dump(self) str[source]¶
Dumps the abstract syntax tree back into an Arcade script string.
- Return type:
str
- static quotedString(text: str | None) str[source]¶
Returns a properly quoted string literal (enclosed in double quotes with escape sequences).
- Parameters:
text (str|None)
- Return type:
str
- rootBlock(self) QgsEsriArcadeBlockStatement | None[source]¶
Returns the root block statement node, or
Noneif parsing failed.- Return type: