weaponregex.internal.model.regextree.referenceNode.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
/** Reference to a named capturing group leaf node
*
* @param name
* The name of the capturing group being referenced
* @param location
* The [[weaponregex.model.Location]] of the node in the regex string
*/
case class NameReference(name: String, override val location: Location) extends Leaf(name, location, """\k<""", ">")
/** Reference to a numbered capturing group leaf node
* @param num
* The order number of the capturing group being referenced
* @param location
* The [[weaponregex.model.Location]] of the node in the regex string
*/
case class NumberReference(num: Int, override val location: Location) extends Leaf(num, location, """\""")
© 2015 - 2024 Weber Informatics LLC | Privacy Policy