Class: QgsExpressionNodeLiteral

class qgis.core.QgsExpressionNodeLiteral

Bases: QgsExpressionNode

An expression node for literal values.

QgsExpressionNodeLiteral(value: Any) Constructor for QgsExpressionNodeLiteral, with the specified literal value.

QgsExpressionNodeLiteral(QgsExpressionNodeLiteral)

Methods

clone

rtype:

QgsExpressionNode

dump

rtype:

str

evalNode

param parent:

isStatic

param parent:

nodeType

rtype:

QgsExpressionNode.NodeType

prepareNode

param parent:

referencedColumns

rtype:

Set[str]

referencedFunctions

rtype:

Set[str]

referencedVariables

rtype:

Set[str]

value

The value of the literal.

valueAsString

Returns a string representation of the node's literal value.

clone(self) QgsExpressionNode
Return type:

QgsExpressionNode

dump(self) str
Return type:

str

evalNode(self, parent: QgsExpression, context: QgsExpressionContext) Any
Parameters:
Return type:

Any

isStatic(self, parent: QgsExpression, context: QgsExpressionContext) bool
Parameters:
Return type:

bool

nodeType(self) QgsExpressionNode.NodeType
Return type:

QgsExpressionNode.NodeType

prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) bool
Parameters:
Return type:

bool

referencedColumns(self) Set[str]
Return type:

Set[str]

referencedFunctions(self) Set[str]
Return type:

Set[str]

referencedVariables(self) Set[str]
Return type:

Set[str]

value(self) Any

The value of the literal.

Return type:

Any

valueAsString(self) str

Returns a string representation of the node’s literal value.

New in version 3.20.

Return type:

str