TokenMutator

weaponregex.model.mutation.TokenMutator
trait TokenMutator

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BOL2BOI.type
object BOLRemoval.type
object CharClassAnyChar.type
object CharClassChildRemoval.type
object CharClassNegation.type
object EOL2EOI.type
object EOLRemoval.type
object GroupToNCGroup.type
object LookaroundNegation.type
object QuantifierNChange.type
object QuantifierRemoval.type
object QuantifierShortChange.type
Show all

Members list

Type members

Classlikes

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

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

Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

def description: String

A short description of the mutator

A short description of the mutator

Attributes

def levels: Seq[Int]

The mutation levels that the token mutator falls under

The mutation levels that the token mutator falls under

Attributes

def mutate(token: RegexTree): Seq[Mutant]

Mutate the given token

Mutate the given token

Value parameters

token

Target token

Attributes

Returns

Sequence of weaponregex.model.mutation.Mutant

def name: String

The name of the mutator

The name of the mutator

Attributes

Concrete methods

final def apply(token: RegexTree): Seq[Mutant]

Apply mutation to the given token

Apply mutation to the given token

Value parameters

token

Target token

Attributes

Returns

Sequence of weaponregex.model.mutation.Mutant

Implicits

Implicits

final implicit protected def MutatedPatternExtension(pattern: String): MutatedPatternExtension

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

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