sealed abstract class Regex[-In, +M, Out] extends Serializable
A generalized representation of a regular expression.
This code was ported (with minor modifications) from https://hackage.haskell.org/package/regex-applicative
- In
the type of each element in the input. For a traditional regular expression, this would be
Char
.- M
metadata associated with each ceedubs.irrec.regex.Regex.Elem instance. This could be
String
to attach a name to elems. More commonly, it is something like ceedubs.irrec.regex.Match with aChar
type parameter.- Out
the output produced by a regular expression if the input matches. Additional useful methods are added via syntax enrichment with ceedubs.irrec.regex.RegexOps and ceedubs.irrec.regex.RegexCOps.
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- Regex
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *: Regex[In, M, Chain[Out]]
- def *?: Regex[In, M, Chain[Out]]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def ?: Regex[In, M, Option[Out]]
- def ??: Regex[In, M, Option[Out]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def count(n: Int): Regex[In, M, Chain[Out]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[Out2](f: (Out) => Out2): Regex[In, M, Out2]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def oneOrMore(greediness: Greediness): Regex[In, M, NonEmptyChain[Out]]
- def optional(greediness: Greediness): Regex[In, M, Option[Out]]
- def quantifyFold[Out2](q: Quantifier, z: Out2)(fold: (Out2, Out) => Out2): Regex[In, M, Out2]
- def repeat(minInclusive: Int, maxInclusive: Option[Int], greediness: Greediness): Regex[In, M, Chain[Out]]
- def star(greediness: Greediness): Regex[In, M, Chain[Out]]
- def starFold[Out2](g: Greediness, z: Out2)(fold: (Out2, Out) => Out2): Regex[In, M, Out2]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()