scala.util.regexp

WordExp

class WordExp extends Base

The class WordExp provides regular word expressions. Users have to instantiate type member _regexpT <: RegExp (from class Base) and a type member _labelT <: Label. Here is a short example:

 import scala.util.regexp._
 import scala.util.automata._
 object MyLang extends WordExp {
   type _regexpT = RegExp
   type _labelT = MyChar

case class MyChar(c:Char) extends Label } import MyLang._ // (a* | b)* val rex = Star(Alt(Star(Letter(MyChar('a'))),Letter(MyChar('b')))) object MyBerriSethi extends WordBerrySethi { override val lang = MyLang } val nfa = MyBerriSethi.automatonFrom(Sequ(rex), 1)

attributes: abstract
known subclasses: ContentModel
source: WordExp.scala
    version
  1. 1.0

    authors:
  1. Burak Emir

Inherited
  1. Hide All
  2. Show all
  1. Base
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new WordExp()

Type Members

  1. class Alt extends RegExp

  2. class Label extends AnyRef

  3. class Letter(a: _labelT) extends RegExp with Product

  4. class Meta extends RegExp

    this class can be used to add meta information to regexps

  5. class RegExp extends AnyRef

  6. class Sequ extends RegExp

  7. class Star(r: _regexpT) extends RegExp with Product

  8. class Wildcard() extends RegExp with Product

  9. type _labelT <: Label

  10. type _regexpT <: RegExp

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. object Alt extends AnyRef

  9. object Eps extends RegExp with Product

  10. object Sequ extends AnyRef

  11. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  12. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  13. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  14. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  15. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  16. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  17. def hashCode(): Int

    Returns a hash code value for the object.

  18. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  19. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  20. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  21. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  22. def synchronized[T0](arg0: T0): T0

  23. def toString(): String

    Returns a string representation of the object.

  24. def wait(): Unit

  25. def wait(arg0: Long, arg1: Int): Unit

  26. def wait(arg0: Long): Unit