Class: QgsExpressionNodeLiteral¶
An expression node for literal values.
Note
This is an abstract class, with methods which must be implemented by a subclass.
The following methods must be implemented: QgsExpressionNode.needsGeometry()
Class Hierarchy¶
Base classes¶
Abstract base class for all nodes that can appear in an expression. |
- class qgis.core.QgsExpressionNodeLiteral[source]¶
Bases:
QgsExpressionNode- __init__(value: Any)
Constructor for QgsExpressionNodeLiteral, with the specified literal
value.- Parameters:
value (Any)
- __init__(a0: QgsExpressionNodeLiteral)
- Parameters:
- virtual evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any[source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
- virtual prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool[source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
bool