Class AbstractGenerator<Options, RenderCompleteModelOptions>Abstract

Abstract generator which must be implemented by each language

Type Parameters

Hierarchy

Constructors

Properties

languageName: string
options: Options

Methods

  • Generates the full output of a model, instead of a scattered model.

    OutputModels result is no longer the model itself, but including package, package dependencies and model dependencies.

    Parameters

    • input: any
    • completeOptions: Partial<RenderCompleteModelOptions>

    Returns Promise<OutputModel[]>

  • 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

    • options: Options

    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][]

Generated using TypeDoc