Options
All
  • Public
  • Public/Protected
  • All
Menu

The ConfigPrintGenerator class, extending the ConfigGenerator class and generating the code that prints a config structure.

Hierarchy

Index

Constructors

constructor

Properties

Protected code

code: string = ""

The generated code.

Protected comment

comment: string = "{{GENERATE_CONFIG_PRINT}}"

The template comment that this generator handles.

Protected config

config: ConfigModel

The config model: the generated code could depend on it.

Protected keys

keys: (string | number)[] = []

A stack of inspected keys.

Protected structure

structure: StructureModel

The structure model: the generated code could depend on it.

Accessors

Protected countName

  • get countName(): string

Protected functionName

  • get functionName(): string

generated

  • get generated(): Code

Protected propCountName

  • get propCountName(): string

Protected propName

  • get propName(): string

Protected structName

  • get structName(): string

Methods

Protected generate

  • generate(): void

Protected getPrimitivePrintfFormatter

Protected getPrimitiveType

Private parse

Protected print

  • print(str: string): void

Private printPrimitive

Private printPrimitiveArray

Generated using TypeDoc