FeatureChainExpressionTemplate

Labs

class FeatureChainExpressionTemplate

Description

A feature chain read as a value: the template form of a.b or x.e.c.

source is the expression the path starts from – ref(a) for the plain a.b, any expression otherwise – and path the features followed from it, each a feature of the previous one’s type. Equality and hashing compare the source structurally and the path by element_id, for the reason ReferenceTemplate gives.

Members defined in FeatureChainExpressionTemplate (4 members)

path

RW

source

RW

__hash__

Hash the source with the path’s feature identities.

path_ids

The path’s feature identities, in order.

Members inherited from ExpressionTemplate (13 members)

__add__

__bool__

Raise: a template is an expression tree, not a truth value.

__mod__

__mul__

__neg__

__pos__

__radd__

__rmod__

__rmul__

__rsub__

__rtruediv__

__sub__

__truediv__

Attributes

path: tuple[syside.Feature, ...] = None
source: syside.experimental.expressions.ExpressionTemplate = None

Methods

__hash__() → int

Hash the source with the path’s feature identities.

path_ids() → tuple[uuid.UUID, ...]

The path’s feature identities, in order.

Used by