ConstructorTemplate
- class ConstructorTemplate
Description
A constructor: the template form of
new T(),new T(1, 2),new T(p = 1)ornew a.b().typeis the instantiated type: a classifier or a feature, or a feature chain (new a.b()). The arguments bind the type’s features, positionally in order or by name (KerML 7.4.9.4); a named argument pairs the feature with its value. Equality and hashing compare the type and the features byelement_id, for the reasonReferenceTemplategives, and the argument templates structurally.Inheritance:
Members defined in
ConstructorTemplate(4 members)RWRWRWHash the type’s identity with the arguments.
Members inherited from
ExpressionTemplate(13 members)Attributes
- arguments: tuple[syside.experimental.expressions.ExpressionTemplate, ...] = None
- named_arguments: tuple[tuple[syside.Feature, syside.experimental.expressions.ExpressionTemplate], ...] = None
- type: syside.Classifier | syside.Feature | syside.experimental.expressions.FeatureChainTemplate = None
Methods
Used by