Preparing search index...
The search index is not available
Modelina
Modelina
AbstractRenderer
Class AbstractRenderer<O, G, RendererModelType>
Abstract
Abstract renderer with common helper methods
Type Parameters
O
extends
CommonGeneratorOptions
=
CommonGeneratorOptions
G
extends
AbstractGenerator
<
any
,
any
>
=
AbstractGenerator
<
any
,
any
>
RendererModelType
extends
ConstrainedMetaModel
=
ConstrainedMetaModel
Index
Constructors
constructor
Properties
generator
input
Model
model
options
presets
Methods
indent
render
Block
render
Line
run
Additional
Content
Preset
run
Preset
run
Self
Preset
Constructors
constructor
new
Abstract
Renderer
<
O
,
G
,
RendererModelType
>
(
options
,
generator
,
presets
,
model
,
inputModel
)
:
AbstractRenderer
<
O
,
G
,
RendererModelType
>
Type Parameters
O
extends
CommonGeneratorOptions
<
Partial
<
any
>
,
AbstractDependencyManager
,
O
>
=
CommonGeneratorOptions
<
Partial
<
any
>
,
AbstractDependencyManager
>
G
extends
AbstractGenerator
<
any
,
any
,
G
>
=
AbstractGenerator
<
any
,
any
>
RendererModelType
extends
ConstrainedMetaModel
<
RendererModelType
>
=
ConstrainedMetaModel
Parameters
options
:
O
generator
:
G
presets
:
[
Partial
<
any
>
,
unknown
]
[]
model
:
RendererModelType
inputModel
:
InputMetaModel
Returns
AbstractRenderer
<
O
,
G
,
RendererModelType
>
Properties
Readonly
generator
generator
:
G
Protected
Readonly
input
Model
input
Model
:
InputMetaModel
Protected
Readonly
model
model
:
RendererModelType
Protected
Readonly
options
options
:
O
Protected
Readonly
presets
presets
:
[
Partial
<
any
>
,
unknown
]
[]
Methods
indent
indent
(
content
,
size
?
,
type
?
)
:
string
Parameters
content
:
string
Optional
size
:
number
Optional
type
:
IndentationTypes
Returns
string
render
Block
render
Block
(
lines
,
newLines
?
)
:
string
Parameters
lines
:
string
[]
newLines
:
number
= 1
Returns
string
render
Line
render
Line
(
line
)
:
string
Parameters
line
:
string
Returns
string
run
Additional
Content
Preset
run
Additional
Content
Preset
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
run
Preset
run
Preset
(
functionName
,
params
?
)
:
Promise
<
string
>
Parameters
functionName
:
string
params
:
Record
<
string
,
unknown
>
= {}
Returns
Promise
<
string
>
run
Self
Preset
run
Self
Preset
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
generator
input
Model
model
options
presets
indent
render
Block
render
Line
run
Additional
Content
Preset
run
Preset
run
Self
Preset
Modelina
Loading...
Abstract renderer with common helper methods