Class: QgsExpressionNodeFunction

An expression node for expression functions.

Class Hierarchy

Inheritance diagram of qgis.core.QgsExpressionNodeFunction

Base classes

QgsExpressionNode

Abstract base class for all nodes that can appear in an expression.

Methods

args

Returns a list of arguments specified for the function.

evalNode

fnIndex

Returns the index of the node's function.

prepareNode

Static Methods

validateParams

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:
__init__(a0: QgsExpressionNodeFunction)
Parameters:

a0 (QgsExpressionNodeFunction)

args(self) QgsExpressionNode.NodeList | None[source]

Returns a list of arguments specified for the function.

Return type:

Optional[QgsExpressionNode.NodeList]

evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]
Parameters:
Return type:

Any

fnIndex(self) int[source]

Returns the index of the node’s function.

Return type:

int

prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]
Parameters:
Return type:

bool

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:
Return type:

bool