saealib.Branch#

class saealib.Branch(condition, *, then, else_=None, name='')[ソース]#

ベースクラス: _ControlValue

Select one of two structural bodies using a condition.

パラメータ:
  • condition (Condition)

  • then (PipelineEntry)

  • else_ (PipelineEntry | None)

  • name (str)

Methods

__init__

to_pseudocode

Render this branch as a lightweight pseudocode line.

to_text

Render this branch as a single plain-text line.

Method Details

Branch.__init__(condition, *, then, else_=None, name='')[ソース]#
パラメータ:
戻り値の型:

None

Branch.to_pseudocode(*, expand=False, indent=0)[ソース]#

Render this branch as a lightweight pseudocode line.

パラメータ:
  • expand (bool)

  • indent (int)

戻り値の型:

str

Branch.to_text(*, expand=False, indent=0)[ソース]#

Render this branch as a single plain-text line.

パラメータ:
  • expand (bool)

  • indent (int)

戻り値の型:

str