weaponregex.internal.model.regextree.quotationNode.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weapon-regex_2.12 Show documentation
Show all versions of weapon-regex_2.12 Show documentation
Weapon regeX mutates regular expressions for use in mutation testing.
The newest version!
package weaponregex.internal.model.regextree
import weaponregex.model.Location
/** Quote for the following single character
*
* @param char
* The character being quoted
* @param location
* The [[weaponregex.model.Location]] of the node in the regex string
*/
case class QuoteChar(char: Char, override val location: Location) extends Leaf(char, location, """\""")
/** Quote from \Q to an optional \E
* @param quote
* The string being quoted
* @param hasEnd
* `true` if quote has an end symbol `\E`, `false` otherwise
* @param location
* The [[weaponregex.model.Location]] of the node in the regex string
*/
case class Quote(quote: String, hasEnd: Boolean, override val location: Location)
extends Leaf(quote, location, """\Q""", if (hasEnd) """\E""" else "")
© 2015 - 2024 Weber Informatics LLC | Privacy Policy