Repository navigation
Class Catalog
Every class exported by sysml2py (generated, 1.0.0).
These are the classes you reach for when constructing a model.
Each is a subclass of Builder and emits the corresponding
SysML usage. Click through for a worked example:
- Action
- Actor
- Attribute
- Connection
- Constraint
- Interface
- Item
- ObjectiveRequirement
- Occurrence
- Part
- Port
- Reference
- Requirement
- State
- Subject
- Transition
- UseCase
Every friendly builder also has an explicit name ending in
UsageBuilder (e.g. PartUsageBuilder), and the container/
non-usage builders keep the *Builder suffix:
ActionUsageBuilderActorUsageBuilderAliasMemberBuilderAttributeUsageBuilderBuilderCommentBuilderConnectionUsageBuilderConstraintUsageBuilderImportBuilderInterfaceUsageBuilderItemUsageBuilderMessageBuilderObjectiveRequirementUsageBuilderOccurrenceUsageBuilderPackageBuilderPartUsageBuilderPortUsageBuilderReferenceUsageBuilderRequirementUsageBuilderStateUsageBuilderSubjectUsageBuilderSuccessionBuilderTransitionUsageBuilderUseCaseUsageBuilder
The library exports 649 generated AST node classes — one
per SysML v2 grammar rule (e.g. PartUsage, AttributeUsage,
PackageBody, Subsetting, FeatureTyping, ...). They are
the typed representation of the parse tree, and are what the
builders produce internally. You rarely construct them by
hand, but they are all public, all have dump() /
get_definition(), and all come from the same generated
ast_classes module.
Every class name is available directly on the package: any
name in dir(sysml2py) that is a class is a generated AST node
or builder. To list them:
import sysml2py
classes = [n for n in dir(sysml2py) if isinstance(getattr(sysml2py, n), type)]
print(len(classes)) # 692 (builders + nodes + Unsupported/Visitor)See AST node classes for the complete machine-generated listing of all 649 node classes, grouped by family.