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

Attributes

pattern

The string pattern to be converted

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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

Attributes

token

The token for reference

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

Attributes

location

weaponregex.model.Location of the mutation

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

Attributes

token

The token for reference

Returns:

A weaponregex.model.mutation.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

Attributes

token

The token for reference

Returns:

A weaponregex.model.mutation.Mutant