Class: QgsExpressionNodeFunction¶
An expression node for expression functions.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Abstract base class for all nodes that can appear in an expression. |
Constructor
Abstract Methods
Methods
Returns a list of arguments specified for the function. |
|
Returns the index of the node's function. |
Virtual Methods
In PyQGIS, only methods marked as virtual can be safely overridden in a Python subclass of QgsExpressionNodeFunction. See the FAQ for more details.
Static Methods
Tests whether the provided argument list is valid for the matching function |
- class qgis.core.QgsExpressionNodeFunction[source]¶
Bases:
QgsExpressionNode- __init__(fnIndex: int, args: QgsExpressionNode.NodeList | None)¶
A function node consists of an index of the function in the global function array and a list of arguments that will be passed to it.
- Parameters:
fnIndex (int)
args (QgsExpressionNode.NodeList|None)
- args(self) QgsExpressionNode.NodeList | None[source]¶
Returns a list of arguments specified for the function.
- Return type:
- abstract clone(self) QgsExpressionNode | None[source]¶
- Return type:
QgsExpressionNode|None
- virtual evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]¶
- Parameters:
parent (QgsExpression|None)
context (QgsExpressionContext|None)
- Return type:
- virtual prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]¶
- Parameters:
parent (QgsExpression|None)
context (QgsExpressionContext|None)
- Return type:
bool
- virtual simplifiedNode(self) QgsExpressionNode | None[source]¶
- Return type:
QgsExpressionNode|None
- static validateParams(fnIndex: int, args: QgsExpressionNode.NodeList | None, error: str | None) bool[source]¶
Tests whether the provided argument list is valid for the matching function
- Parameters:
fnIndex (int)
args (QgsExpressionNode.NodeList|None)
error (str|None)
- Return type:
bool