syside.FormatOptions

class FormatOptions

Initialization

property null_expression: syside.FormatPreserved[syside.NullFormat]

Controls NullExpression formatting:

  • null: always formatted as null

  • brackets: always formatted as ()

property literal_real: syside.FloatFormat

Controls LiteralReal formatting. Only applies to those numbers that are not in the source text.

property strip_unnecessary_quotes: bool

Controls identifier formatting. If true, strips quotes from identifiers if the name doesn’t have restricted characters

property sequence_expression_trailing_comma: syside.OptionalToken

Controls SequenceExpression trailing comma formatting.

property operator_break: syside.OperatorBreak

Controls binary operator placement on line breaks.

  • after: operators are placed on the same line as the LHS expression

  • before: operators are placed on the same line as the RHS expression

property comment_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls comment keyword formatting:

  • always: comment will always be printed

  • as-needed: comment will only be printed as needed

property comment_about_break: syside.OptionalKw

Controls line break preceding about in Comment:

  • always: about list is always on a new line

  • as-needed: printer tries to fit about list on the previous line

property markdown_comments: bool

Controls Comment and Documentation body formatting. If true, trailing whitespace is preserved on each line but last.

property textual_representation_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls rep keyword formatting:

  • always: rep will always be printed

  • as-needed: rep will only be printed as needed

property textual_representation_language_break: syside.OptionalKw

Controls line break preceding language in TextualRepresentation:

  • always: language is always on a new line

  • as-needed: printer tries to fit language on the previous line

property empty_namespace_brackets: syside.FormatPreserved[syside.AlwaysNever]

Controls formatting of empty children blocks:

  • always: empty blocks are always formatted as {}

  • never: empty blocks are always formatted as a trailing ;

property merge_declaration_disjoining: bool

Controls disjoining formatting in type declarations. If true, all disjoinings are merged into a single group. Requires KerML.

property merge_unioning: bool

Controls unioning formatting in type declarations. If true, all unionings are merged into a single group. Requires KerML.

property merge_intersecting: bool

Controls intersecting formatting in type declarations. If true, all intersectings are merged into a single group. Requires KerML.

property merge_differencing: bool

Controls differencing formatting in type declarations. If true, all differencings are merged into a single group. Requires KerML.

property merge_feature_chaining: bool

Controls feature chaining formatting in feature declarations. If true, all feature chainings are merged into a single group. Requires KerML.

property merge_declaration_type_featuring: bool

Controls type featuring formatting in feature declarations. If true, all type featurings are merged into a single group. Requires KerML.

property declaration_specialization: syside.FormatPreserved[syside.KwToken]

Controls specialization formatting.

property declaration_conjugation: syside.FormatPreserved[syside.KwToken]

Controls conjugation formatting. Requires KerML.

property declaration_subsetting: syside.FormatPreserved[syside.KwToken]

Controls subsetting formatting.

property declaration_subclassification: syside.FormatPreserved[syside.KwToken]

Controls subclassification formatting.

property declaration_redefinition: syside.FormatPreserved[syside.KwToken]

Controls redefinition formatting.

property declaration_reference_subsetting: syside.FormatPreserved[syside.KwToken]

Controls reference subsetting formatting in feature declarations.

property declaration_cross_subsetting: syside.FormatPreserved[syside.KwToken]

Controls cross subsetting formatting in feature declarations.

property declaration_feature_typing: syside.FormatPreserved[syside.KwToken]

Controls feature typing formatting.

property declaration_conjugated_port_typing: syside.FormatPreserved[syside.KwToken]

Controls conjugated port typing formatting in port declarations.

property feature_value_equals: syside.FormatPreserved[syside.OptionalKw]

Controls feature value equals token formatting whenever it can be omitted:

  • as-needed: = will only be printed if it is required by the grammar

  • always: = will be always printed when it is acceptable by the grammar

property feature_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls feature keyword formatting in KerML:

  • always: feature keyword is always printed

  • as-needed: feature keyword is printed only when required by the grammar

property public_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls public keyword formatting:

  • always: public will always be printed

  • never: public will never be printed

property specialization_keyword_specialization: syside.FormatPreserved[syside.OptionalKw]

Controls specialization keyword formatting in specialization members:

  • always: specialization will always be printed.

  • as-needed: specialization will be printed only if required by the grammar

property specialization_keyword_subclassification: syside.FormatPreserved[syside.OptionalKw]

Controls specialization keyword formatting in subclassification members:

  • always: specialization will always be printed.

  • as-needed: specialization will be printed only if required by the grammar

property specialization_keyword_feature_typing: syside.FormatPreserved[syside.OptionalKw]

Controls specialization keyword formatting in feature typing members:

  • always: specialization will always be printed.

  • as-needed: specialization will be printed only if required by the grammar

property specialization_keyword_subsetting: syside.FormatPreserved[syside.OptionalKw]

Controls specialization keyword formatting in subsetting members:

  • always: specialization will always be printed.

  • as-needed: specialization will be printed only if required by the grammar

property specialization_keyword_redefinition: syside.FormatPreserved[syside.OptionalKw]

Controls specialization keyword formatting in redefinition members:

  • always: specialization will always be printed.

  • as-needed: specialization will be printed only if required by the grammar

property conjugation_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls conjugation keyword formatting in conjugation members:

  • always: conjugation will always be printed.

  • as-needed: conjugation will be printed only if required by the grammar

property disjoining_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls disjoining keyword formatting in disjoining members:

  • always: disjoining will always be printed.

  • as-needed: disjoining will be printed only if required by the grammar

property inverting_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls inverting keyword formatting in inverting members:

  • always: inverting will always be printed.

  • as-needed: inverting will be printed only if required by the grammar

property featuring_of_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls of keyword formatting in type featuring members:

  • always: of will always be printed.

  • as-needed: of will be printed only if required by the grammar

property dependency_from_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls from keyword formatting in dependencies:

  • always: from will always be printed.

  • as-needed: from will be printed only if required by the grammar

property invariant_true_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls true keyword formatting in invariants:

  • never: true is never printed

  • always: true is always printed if invariant is not negated

property multiplicity_placement: syside.MultiPlacement

Controls multiplicity placement in type declarations:

  • first: multiplicity is printed before any specializations

  • first-specialization: multiplicity is printed after the first specialization

  • last: multiplicity is printed after all specializations

property metadata_feature_keyword: syside.FormatPreserved[syside.KwToken]

Controls metadata feature keyword used.

property metadata_body_feature_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls feature (KerML) and ref (SysML) keyword formatting in metadata features:

  • always: keywords are always printed

  • never: keywords are never printed

property metadata_body_feature_redefines: syside.FormatPreserved[syside.OptionalKwToken]

Controls first feature redefinition formatting inside MetadataFeature bodies:

  • keyword: redefines is printed

  • token: :>> is printed

  • none: nothing is printed

property binary_allocation_usages: syside.FormatPreserved[syside.AlwaysNever]

Controls allocation usage ends formatting:

  • always: binary ends are printed as binary declaration

  • never: binary ends are printed as nary declaration

property binary_connectors: syside.FormatPreserved[syside.AlwaysNever]

Controls connector ends formatting:

  • always: binary ends are printed as binary declaration

  • never: binary ends are printed as nary declaration

property binary_connectors_from_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls from keyword formatting in binary connectors:

  • always: from is always printed

  • as-needed: from is only printed when required by the grammar

property binary_binding_connectors: syside.FormatPreserved[syside.AlwaysNever]

Controls binding connector ends formatting:

  • always: binary ends are printed as binary declaration

  • never: binary ends are printed as nary declaration

property binary_binding_connector_of_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls of keyword formatting in binary binding connectors:

  • always: of is always printed

  • as-needed: of is only printed when required by the grammar

property binary_successions: syside.FormatPreserved[syside.AlwaysNever]

Controls succession ends formatting:

  • always: binary ends are printed as binary declaration

  • never: binary ends are printed as nary declaration

property binary_succession_first_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls first keyword formatting in binary successions:

  • always: first is always printed

  • as-needed: first is only printed when required by the grammar

property item_flow_from_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls from keyword formatting in item flows:

  • always: from is always printed

  • as-needed: from is only printed when required by the grammar

property succession_item_flow_from_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls from keyword formatting in succession item flows:

  • always: from is always printed

  • as-needed: from is only printed when required by the grammar

property flow_connection_usage_from_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls from keyword formatting in flow connection usages:

  • always: from is always printed

  • as-needed: from is only printed when required by the grammar

property succession_flow_connection_usage_from_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls from keyword formatting in succession flow connection usages:

  • always: from is always printed

  • as-needed: from is only printed when required by the grammar

property ordered_nonunique_priority: syside.FormatPreserved[syside.MultiOrder]

Controls ordered and nonunique print order:

  • ordered: ordered is printed first

  • nonunique: nonunique is printed first

property enum_member_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls enum keyword formatting inside enum definitions:

  • always: enum is always printed

  • never: enum is never printed

property occurrence_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls occurrence keyword formatting in occurrence usages and definitions:

  • always: occurrence is always printed

  • as-needed: occurrence is only printed when required by the grammar

property binding_connector_as_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls binding formatting in binding connectors as usages:

  • always: binding is always printed

  • as-needed: binding is only printed when required by the grammar

property succession_as_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls succession formatting in successions as usages:

  • always: succession is always printed

  • as-needed: succession is only printed when required by the grammar

property assert_constraint_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls constraint formatting in assert constraint usages:

  • always: constraint is always printed

  • as-needed: constraint is only printed when required by the grammar

property event_occurrence_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls occurrence keyword formatting in event occurrence usages:

  • always: occurrence is always printed

  • as-needed: occurrence is only printed when required by the grammar

property exhibit_state_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls state formatting in exhibit state usages:

  • always: state is always printed

  • as-needed: state is only printed when required by the grammar

property include_use_case_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls use case formatting in include use case usages:

  • always: use case is always printed

  • as-needed: use case is only printed when required by the grammar

property perform_action_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls action formatting in perform action usages:

  • always: action is always printed

  • as-needed: action is only printed when required by the grammar

property satisfy_requirement_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls requirement formatting in satisfy requirement usages:

  • always: requirement is always printed

  • as-needed: requirement is only printed when required by the grammar

property satisfy_requirement_assert_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls assert formatting in satisfy requirement usages:

  • always: assert is always printed

  • never: assert is never printed

property allocation_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls allocation formatting in allocation usages:

  • always: allocation is always printed

  • as-needed: allocation is only printed when required by the grammar

property connection_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls connection formatting in connection usages:

  • always: connection is always printed

  • as-needed: connection is only printed when required by the grammar

property binary_connection_usages: syside.FormatPreserved[syside.AlwaysNever]

Controls connection usage ends formatting:

  • always: binary ends are printed as binary declaration

  • never: binary ends are printed as nary declaration

property binary_interface_usages: syside.FormatPreserved[syside.AlwaysNever]

Controls interface usage ends formatting:

  • always: binary ends are printed as binary declaration

  • never: binary ends are printed as nary declaration

property interface_usage_connect_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls connect formatting in interface usages:

  • always: connect is always printed

  • as-needed: connect is only printed when required by the grammar

property action_node_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls action formatting in action nodes:

  • always: action is always printed

  • as-needed: action is printed only if required by the grammar

property while_loop_parenthesize_condition: syside.OptionalToken

Controls while (...) while loop action condition expression formatting:

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-break: expression is printed with parentheses only if it breaks

property while_loop_parenthesize_until: syside.OptionalToken

Controls until (...) while loop action condition expression formatting:

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-break: expression is printed with parentheses only if it breaks

property if_parenthesize_condition: syside.OptionalToken

Controls if (...) condition expression formatting:

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-break: expression is printed with parentheses only if it breaks

property transition_usage_parenthesize_guard: syside.OptionalToken

Controls if (...) condition expression in transition usages formatting:

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-break: expression is printed with parentheses only if it breaks

property element_filter_parenthesize: syside.OptionalToken

Controls filter (...) condition expression in element filter memberships formatting:

  • always: expression is printed with parentheses

  • never: expression is printed without parentheses

  • on-break: expression is printed with parentheses only if it breaks

property transition_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls transition formatting in transition usages:

  • always: transition is always printed if permitted by the grammar

  • as-needed: transition is only printed if required by the grammar

property transition_usage_first_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls first formatting in transition usages:

  • always: first is always printed if permitted by the grammar

  • as-needed: first is only printed if required by the grammar

property framed_concern_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls concern formatting in framed concern usages:

  • always: concern is always printed

  • as-needed: concern is only printed if required by the grammar

property reference_usage_keyword: syside.FormatPreserved[syside.OptionalKw]

Controls ref formatting in reference usages:

  • always: ref is always printed

  • as-needed: ref is only printed if required by the grammar

property attribute_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in attribute usages:

  • always: ref is always printed

  • never: ref is never printed

property event_occurrence_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in event occurrence usages:

  • always: ref is always printed

  • never: ref is never printed

property port_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in attribute usages:

  • always: ref is always printed

  • never: ref is never printed

property connection_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in connection usages:

  • always: ref is always printed

  • never: ref is never printed

property connector_as_usage_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in connector as usages:

  • always: ref is always printed

  • never: ref is never printed

property exhibit_state_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in exhibit state usages:

  • always: ref is always printed

  • never: ref is never printed

property include_use_case_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in include use case usages:

  • always: ref is always printed

  • never: ref is never printed

property perform_action_reference_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls ref formatting in perform action usages:

  • always: ref is always printed

  • never: ref is never printed

property interface_port_keyword: syside.FormatPreserved[syside.AlwaysNever]

Controls port formatting of default interface ends:

  • always: port is always printed

  • never: port is never printed

__cpp_name__: str = 'syside::sysml::FormatOptions'