Contains utility methods related to the weaver.

Constructors

Properties

AST_METHODS: any = ...

An instance of the basic interface that the AST nodes must support.

DEFAULT_WEAVER_COMMAND: undefined = undefined

If defined, sets the default weaver command.

Accessors

Methods

  • Finds the name of the joinpoint class, given the js wrapper class itself

    Type Parameters

    Parameters

    • type: T

      The joinpoint class to find the name of

    Returns undefined | string

    The name of the joinpoint class

  • Parameters

    • jpTypeName: string

      a join point, or the name of a join point

    • attributeName: string

      the name of the attribute to check

    Returns boolean

    True, if the given join point or join point name support the attribute with the given name

    The typescript compiler will tell you this

  • Launches several 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

    • weaverCommand: string | string[] = []

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

    Returns any[]

    A list with the results of each of the executions. The executing script must use weaver.Script to set the output (i.e. Script.setOutput())