Variant#
- class ansys.scadeone.core.swan.VariantValue(tag: PathIdentifier, group: Group)#
Bases:
Expression
Variant expression: path_id { group }.
- static set_owner(owner: Self, children: Self | Iterable[Self])#
Helper to set owner as the owner of each item in the Iterable items.
- property is_protected: bool#
Tell if a construct item is syntactically protected with some markup and is stored as a string (without the markup).
- property module: ModuleBase#
Module containing the item.
- Returns:
ModuleBase: module container, see
ModuleBody
andModuleInterface
- property owner: Self#
Owner of current Swan construct.
- property tag: PathIdentifier#
Variant tag.