SPeCS Packages Documentation
    Preparing search index...
    Index

    Constructors

    Methods

    • Parameters

      • path: string | File

        Path to an existing source file that will be added to the AST. If the file does not exists, throws an exception.

      Returns void

    • Returns string

      The folder of the first input source element, either itself, if a folder, or the parent folder, if it is a file.

    • Creates a clone of the current AST and pushes the clone to the top of the current AST stack. If a $program join point is passed, that join point is added to the top of the stack instead.

      Parameters

      • Optional$program: Program

        program to push to the AST.

      Returns void

    • Launches a Clava weaving session.

      Parameters

      • args: string | any[]

        The arguments to pass to the weaver, as if it was launched from the command-line

      Returns boolean

      True if the weaver execution without problems, false otherwise

    • Launches several Clava weaving sessions in parallel.

      Parameters

      • argsLists: string[][]

        An array where each element is an array with the arguments to pass to the weaver, as if it was launched from the command-line

      • threads: number = -1

        Number of threads to use

      • clavaCommand: string | string[] = ...

        The command we should use to call Clava (e.g., /usr/local/bin/clava)

      Returns void

      The results of each execution