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(a0: QgsExpressionNodeLiteral)

Methods

clone

rtype:

Optional[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 | None
Return type:

Optional[QgsExpressionNode]

dump(self) str
Return type:

str

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

Any

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

bool

nodeType(self) QgsExpressionNode.NodeType
Return type:

QgsExpressionNode.NodeType

prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) 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.

Added in version 3.20.

Return type:

str