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
trait TokenMutator
class Object
trait Matchable
class Any
Self type

Members list

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

Value parameters

pattern

The string pattern to be converted

Attributes

Inherited from:
TokenMutator
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

Value parameters

char

Character to be checked

Attributes

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

Value parameters

char

Character to be checked

Attributes

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

Value parameters

token

Target token

Attributes

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

Value parameters

char

The given character

Attributes

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

Value parameters

char

The given character

Attributes

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

Value parameters

token

Target token

Attributes

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

Value parameters

pattern

The string pattern to be converted

Attributes

Inherited from:
TokenMutator