Packages

o

gnieh.regex.vm

BytecodeImpl

object BytecodeImpl extends RegexImpl with Serializable

This class provides a way to create and use regular expressions. It is a non backtracking implementation based on the descrition from [Russ Cox](http://swtch.com/~rsc/regexp/). Following regular expressions are supported:

  • . any character, possibly including newline (s=true)
  • [xyz] character class
  • [^xyz] negated character class
  • \d a digit character (equivalent to [0-9])
  • \D a non digit character (equivalent to [^0-9])
  • \w an alphanumeric character (equivalent to [A-Za-z0-9_])
  • \W a non alphanumeric character (equivalent to [^A-Za-z0-9_])
  • \s a space character (equivalent to [ \t\r\n\f])
  • \S a non space character (equivalent to [^ \t\r\n\f])
  • xy x followed by y
  • x|y x or y (prefer x)
  • x* zero or more x (prefer more)
  • x+ one or more x (prefer more)
  • x? zero or one x (prefer one)
  • x*? zero or more x (prefer zero)
  • x+? one or more x (prefer one)
  • x?? zero or one x (prefer zero)
  • (re) numbered capturing group (starting at 1)
  • re{min,max} bounded repetition (min and max are integers)
  • re{min} bounded repetition (min is an integer)
  • ^ start of input anchor
  • $ end of input anchor
Linear Supertypes
Serializable, Serializable, RegexImpl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BytecodeImpl
  2. Serializable
  3. Serializable
  4. RegexImpl
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Compiled = Vector[Inst]
    Definition Classes
    BytecodeImplRegexImpl

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def compile(re: ReNode): (Int, Vector[Inst])
    Definition Classes
    BytecodeImplRegexImpl
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def exec(compiled: Vector[Inst], nbSaved: Int, startIdx: Int, string: String): (Int, Int, Vector[Int])
    Definition Classes
    BytecodeImplRegexImpl
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from RegexImpl

Inherited from AnyRef

Inherited from Any

Ungrouped