Class: QgsExpressionNodeBetweenOperator¶
SQL-like BETWEEN and NOT BETWEEN predicates.
Added in version 3.26.
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. |
Methods
Returns the higher bound expression node of the range. |
|
Returns the lower bound expression node of the range. |
|
Returns |
|
Returns the expression node. |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsExpressionNodeBetweenOperator. See the FAQ for more details.
- class qgis.core.QgsExpressionNodeBetweenOperator[source]¶
Bases:
QgsExpressionNode
- __init__(node: QgsExpressionNode | None, nodeLowerBound: QgsExpressionNode | None, nodeHigherBound: QgsExpressionNode | None, negate: bool = False)
This node tests if the result of
node
is between the result ofnodeLowerBound
andnodeHigherBound
nodes. Optionally it can be inverted withnegate
which by default isFalse
.- Parameters:
node (Optional[QgsExpressionNode])
nodeLowerBound (Optional[QgsExpressionNode])
nodeHigherBound (Optional[QgsExpressionNode])
negate (bool = False)
- virtual evalNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) Any [source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
Any
- higherBound(self) QgsExpressionNode | None [source]¶
Returns the higher bound expression node of the range.
- Return type:
Optional[QgsExpressionNode]
- lowerBound(self) QgsExpressionNode | None [source]¶
Returns the lower bound expression node of the range.
- Return type:
Optional[QgsExpressionNode]
- negate(self) bool [source]¶
Returns
True
if the predicate is an exclusion test (NOT BETWEEN).- Return type:
bool
- node(self) QgsExpressionNode | None [source]¶
Returns the expression node.
- Return type:
Optional[QgsExpressionNode]
- virtual prepareNode(self, parent: QgsExpression | None, context: QgsExpressionContext | None) bool [source]¶
- Parameters:
parent (Optional[QgsExpression])
context (Optional[QgsExpressionContext])
- Return type:
bool