Class: QgsExpressionNodeColumnRef

class qgis.core.QgsExpressionNodeColumnRef

Bases: QgsExpressionNode

An expression node which takes it value from a feature’s field.

QgsExpressionNodeColumnRef(name: Optional[str]) Constructor for QgsExpressionNodeColumnRef, referencing the column with the specified name.

QgsExpressionNodeColumnRef(a0: QgsExpressionNodeColumnRef)

Methods

clone

rtype:

Optional[QgsExpressionNode]

dump

rtype:

str

evalNode

param parent:

isStatic

param parent:

name

The name of the column.

needsGeometry

rtype:

bool

nodeType

rtype:

QgsExpressionNode.NodeType

prepareNode

param parent:

referencedColumns

rtype:

Set[str]

referencedFunctions

rtype:

Set[str]

referencedVariables

rtype:

Set[str]

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

name(self) str

The name of the column.

Return type:

str

needsGeometry(self) bool
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]