Class

SerializerScriptComposer

SerializerScriptComposer(libraryAccessor)

Constructor

new SerializerScriptComposer(libraryAccessor)

The serializer that will create script by composition from a custom library of available scripts. Ensures a header with import statement, and a try...except block with a standard error management.

Parameters:
Name Type Description
libraryAccessor

Methods

addCustomScript(scriptContent)

Appends a custom script at the end of the current body state.

Parameters:
Name Type Description
scriptContent string

The string content of the script to append to the current body state.