MutatedPatternExtension

weaponregex.model.mutation.TokenMutator.MutatedPatternExtension
implicit protected class MutatedPatternExtension(pattern: String)

Extension class for a mutated pattern string to convert it into a weaponregex.model.mutation.Mutant using the information of the current token mutator

Value parameters

pattern

The string pattern to be converted

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant with the weaponregex.model.Location starts from the end of the provided token's last child and ends at the end of the token

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant with the weaponregex.model.Location starts from the end of the provided token's last child and ends at the end of the token

If the given token has no child, the location of the given token is considered to be the location of the mutant

Value parameters

token

The token for reference

Attributes

Returns

A weaponregex.model.mutation.Mutant

def toMutantAt(location: Location): Mutant

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant at the provided weaponregex.model.Location

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant at the provided weaponregex.model.Location

Value parameters

location

weaponregex.model.Location of the mutation

Attributes

Returns

A weaponregex.model.mutation.Mutant

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant with the weaponregex.model.Location starts from the start of the provided token and ends at the start of the token's first child

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant with the weaponregex.model.Location starts from the start of the provided token and ends at the start of the token's first child

If the given token has no child, the location of the given token is considered to be the location of the mutant

Value parameters

token

The token for reference

Attributes

Returns

A weaponregex.model.mutation.Mutant

def toMutantOf(token: RegexTree): Mutant

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant with the weaponregex.model.Location taken from the provided token

Convert a mutated pattern string into a weaponregex.model.mutation.Mutant with the weaponregex.model.Location taken from the provided token

Value parameters

token

The token for reference

Attributes

Returns

A weaponregex.model.mutation.Mutant