CharClassRangeModification

weaponregex.mutator.CharClassRangeModification$

Modify the range inside the character class by increasing or decreasing once

''Mutation level(s):'' 3

Attributes

Example:

[b-y][a-y], [c-y], [b-x], [b-z]

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Inherited 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

Attributes

pattern

The string pattern to be converted

Inherited from:
TokenMutator
Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def isLeftBound(char: Char): Boolean

Check if the given character is a left boundary character 0, a, or A

Check if the given character is a left boundary character 0, a, or A

Attributes

char

Character to be checked

Returns:

true if the given character is a left boundary character, false otherwise

def isRightBound(char: Char): Boolean

Check if the given character is a right boundary character 9, z, or Z

Check if the given character is a right boundary character 9, z, or Z

Attributes

char

Character to be checked

Returns:

true if the given character is a right boundary character, false otherwise

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

Mutate the given token

Mutate the given token

Attributes

token

Target token

Returns:

Sequence of weaponregex.model.mutation.Mutant

Definition Classes
def nextChar(char: Char): Char

Get the character after the given character, based on Scala character ordering

Get the character after the given character, based on Scala character ordering

Attributes

char

The given character

Returns:

The character after the given character, based on Scala character ordering

def prevChar(char: Char): Char

Get the character before the given character, based on Scala character ordering

Get the character before the given character, based on Scala character ordering

Attributes

char

The given character

Returns:

The character before the given character, based on Scala character ordering

Inherited methods

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

Apply mutation to the given token

Apply mutation to the given token

Attributes

token

Target token

Returns:

Sequence of weaponregex.model.mutation.Mutant

Inherited from:
TokenMutator

Concrete fields

override val description: String

A short description of the mutator

A short description of the mutator

Attributes

override val levels: Seq[Int]

The mutation levels that the token mutator falls under

The mutation levels that the token mutator falls under

Attributes

override val name: String

The name of the mutator

The name of the mutator

Attributes

Implicits

Inherited 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

Attributes

pattern

The string pattern to be converted

Inherited from:
TokenMutator