Class: QgsExpressionNodeLiteral¶
- class qgis.core.QgsExpressionNodeLiteral¶
Bases:
QgsExpressionNode
An expression node for literal values.
QgsExpressionNodeLiteral(value: Any) Constructor for
QgsExpressionNodeLiteral
, with the specified literalvalue
.QgsExpressionNodeLiteral(
QgsExpressionNodeLiteral
)Methods
- rtype
QgsExpressionNode
- rtype
str
- param parent
- param parent
- rtype
QgsExpressionNode.NodeType
- param parent
- rtype
Set[str]
- rtype
Set[str]
- rtype
Set[str]
The value of the literal.
Returns a string representation of the node's literal value.
- clone(self) QgsExpressionNode ¶
- Return type
- dump(self) str ¶
- Return type
str
- evalNode(self, parent: QgsExpression, context: QgsExpressionContext) Any ¶
- Parameters
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type
Any
- isStatic(self, parent: QgsExpression, context: QgsExpressionContext) bool ¶
- Parameters
parent (QgsExpression) –
context (QgsExpressionContext) –
- Return type
bool
- nodeType(self) QgsExpressionNode.NodeType ¶
- Return type
- prepareNode(self, parent: QgsExpression, context: QgsExpressionContext) bool ¶
- Parameters
parent (QgsExpression) –
context (QgsExpressionContext) –
- 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