SPeCS Packages Documentation
    Preparing search index...

    Contains utility methods related to the weaver.

    Index

    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

    • Type Parameters

      Parameters

      • joinPointType: T

        The type of the join point

      Returns keyof T | null

      The name of the default attribute for the given join point type, or undefined if there is no default attribute

    • Parameters

      • joinPointType: string

        The type of the join point

      Returns string | null

      The name of the default attribute for the given join point type, or undefined if there is no default attribute

    • Type Parameters

      Parameters

      • joinPointType: string | T

        The type of the join point

      Returns string | keyof T | null

      The name of the default attribute for the given join point type, or undefined if there is no default attribute

    • 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())

    • Type Parameters

      • T

      Parameters

      Returns T[]

      Should not be used. Here for a short period to allow for code migration.

      Adapts a Java object to JavaScript. Currently converts:

      • ~Null to undefined~;
      • ~Java array to JS array~;
      • Java List to array;