Class AbstractGenerator<Options, RenderCompleteModelOptions>Abstract

Abstract generator which must be implemented by each language

Type Parameters

Hierarchy (view full)

Constructors

Properties

languageName: string
options: Options

Methods

  • Generates an array of ConstrainedMetaModel with its dependency manager from an InputMetaModel. It also adds parents to the ConstrainedMetaModel's which can be used in renderers which needs to know what parents they belong to.

    Parameters

    Returns {
        constrainedModel: ConstrainedMetaModel;
        dependencyManager: AbstractDependencyManager;
    }[]

  • This function returns an instance of the dependency manager which is either a factory or an instance.

    Parameters

    Returns AbstractDependencyManager

  • Get all presets (default and custom ones from options) for a given preset type (class, enum, etc).

    Parameters

    • presetType: string

    Returns [Partial<any>, unknown][]