WeaponRegeXJS

weaponregex.WeaponRegeXJS$

The API facade of Weapon regeX for JavaScript

Attributes

Note:

For JavaScript use only

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def mutate(pattern: String, flags: UndefOr[String], options: MutationOptions): Array[MutantJS]

Mutate a regex pattern and flags with the given options.

Mutate a regex pattern and flags with the given options.

Attributes

flags

Regex flags or undefined

options

JavaScript object for Mutation options

{
 mutators: [Mutators to be used for mutation. If this is `null`, all built-in mutators will be used.],
 mutationLevels: [Target mutation levels. If this is `null`, the `mutators`, will not be filtered.],
 flavor: [Regex flavor. By the default, `ParerFlavorJS` will be used.]
}
pattern

Input regex string

Returns:

A JavaScript Array of weaponregex.model.mutation.Mutant if can be parsed, or throw an exception otherwise

Deprecated methods

def mutate(pattern: String, options: MutationOptions): Array[MutantJS]

Mutate a regex pattern with the given options.

Mutate a regex pattern with the given options.

Attributes

options

JavaScript object for Mutation options

{
 mutators: [Mutators to be used for mutation. If this is `null`, all built-in mutators will be used.],
 mutationLevels: [Target mutation levels. If this is `null`, the `mutators`, will not be filtered.],
 flavor: [Regex flavor. By the default, `ParerFlavorJS` will be used.]
}
pattern

Input regex string

Returns:

A JavaScript Array of weaponregex.model.mutation.Mutant if can be parsed, or throw an exception otherwise

Deprecated
true