A join point of type binaryExpression.

Operators that will be used to mutate the given binaryExpression.

Hierarchy (view full)

Constructors

Properties

automaticRestore: boolean

If true, before each call to .mutate() will check if the code is already mutated, and call restore before the mutation is applied

binaryExpression: BinaryExpression
currentIndex: number
isMutated: boolean

True if the current code is mutated, false otherwise

name: string
newOperators: string[]
previousOp?: string

Methods

  • Adds a join point to this Mutator. Is only added if the Mutator can be applied over this join point, otherwise it will be ignored.

    Parameters

    Returns void

  • Returns undefined | LaraJoinPoint

    The point with currently mutated code, or undefined if this concept is not applicable to this mutator.

  • Returns string

    The name of this mutator

  • Returns number

    The number of mutations this mutator will apply

  • Returns string

    The name of this Mutator

    use getName() instead

  • Introduces a single mutation to the code. If the code has been mutated already, restores the code before mutating again. If there are no mutations left, does nothing.

    Returns void

  • If the code has been mutated, restores the code to its original state. If not, does nothing.

    Returns void

  • Enables/disables automatic restore. Is enabled by default.

    If enabled, before each call to .mutate() will check if the code is already mutated, and call restore before the mutation is applied.

    Parameters

    • Optionalvalue: boolean

      true to enable, false to disable

    Returns void