Trait

io.github.reggert.reb4s

Quantifiable

Related Doc: package reb4s

Permalink

trait Quantifiable extends Expression

Interface implemented by regular expression builders that can accept quantifiers.

In order to quantifier an expression that does not include this trait, it should first be wrapped in a Group of some sort.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Quantifiable
  2. Expression
  3. Immutable
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def boundedLength: Option[Int]

    Permalink

    If the expression has a computable maximum length, this returns it.

    If the expression has a computable maximum length, this returns it. Otherwise, it returns None.

    This is used for determining whether an expression is suitable for look-behind.

    Attributes
    protected[io.github.reggert.reb4s]
    Definition Classes
    Expression
  2. abstract def expression: String

    Permalink

    Returns the regular expression represented by this object, in a form suitable to passing to the java.util.regex.Pattern class.

    Returns the regular expression represented by this object, in a form suitable to passing to the java.util.regex.Pattern class.

    Definition Classes
    Expression
  3. abstract def possiblyZeroLength: Boolean

    Permalink

    Indicates whether the expression may possibly be zero length.

    Indicates whether the expression may possibly be zero length.

    Used in some cases for determining repetitionInvalidatesBounds.

    Attributes
    protected[io.github.reggert.reb4s]
    Definition Classes
    Expression
  4. abstract def repetitionInvalidatesBounds: Boolean

    Permalink

    Indicates whether applying repetition to the expression invalidates the boundedness computation.

    Indicates whether applying repetition to the expression invalidates the boundedness computation. This generally indicates that the expression may match a zero-repetition ({0, n} or ?).

    This is used to determine boundedness of enclosing expressions.

    Attributes
    protected[io.github.reggert.reb4s]
    Definition Classes
    Expression

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def *: AnyTimes

    Permalink

    Returns an expression that matches the receiver repeated any number of times, using greedy matching.

    Returns an expression that matches the receiver repeated any number of times, using greedy matching.

    See also

    Quantifiable#anyTimes

  4. final def *+: AnyTimes

    Permalink

    Returns an expression that matches the receiver repeated any number of times, using possessive matching.

    Returns an expression that matches the receiver repeated any number of times, using possessive matching.

    See also

    Quantifiable#anyTimes

  5. final def *?: AnyTimes

    Permalink

    Returns an expression that matches the receiver repeated any number of times, using reluctant matching.

    Returns an expression that matches the receiver repeated any number of times, using reluctant matching.

    See also

    Quantifiable#anyTimes

  6. final def +: AtLeastOnce

    Permalink

    Returns an expression that matches the receiver repeated at least once, using greedy matching.

    Returns an expression that matches the receiver repeated at least once, using greedy matching.

    See also

    Quantifiable#atLeastOnce

  7. final def ++: AtLeastOnce

    Permalink

    Returns an expression that matches the receiver repeated at least once, using possessive matching.

    Returns an expression that matches the receiver repeated at least once, using possessive matching.

    See also

    Quantifiable#atLeastOnce

  8. final def +?: AtLeastOnce

    Permalink

    Returns an expression that matches the receiver repeated at least once, using reluctant matching.

    Returns an expression that matches the receiver repeated at least once, using reluctant matching.

    See also

    Quantifiable#atLeast

  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def ?: Optional

    Permalink

    Returns an expression that matches the receiver appearing once or not at all, using greedy matching.

    Returns an expression that matches the receiver appearing once or not at all, using greedy matching.

    See also

    Quantifiable#optional

  11. final def ?+: Optional

    Permalink

    Returns an expression that matches the receiver appearing once or not at all, using possessive matching.

    Returns an expression that matches the receiver appearing once or not at all, using possessive matching.

    See also

    Quantifiable#optional

  12. final def ??: Optional

    Permalink

    Returns an expression that matches the receiver appearing once or not at all, using reluctant matching.

    Returns an expression that matches the receiver appearing once or not at all, using reluctant matching.

    See also

    Quantifiable#optional

  13. final def anyTimes(mode: Mode = Greedy): AnyTimes

    Permalink

    Returns an expression that matches the receiver repeated any number of times.

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. final def atLeast(n: Int, mode: Mode = Greedy): RepeatRange

    Permalink

    Returns an expression that matches the receiver repeated at least the specified minimum number of times.

    Returns an expression that matches the receiver repeated at least the specified minimum number of times.

    n

    the minimum number of times that the pattern may be repeated; must be be >= 0;

    Exceptions thrown

    IllegalArgumentException if n < 0.

  16. final def atLeastOnce(mode: Mode = Greedy): AtLeastOnce

    Permalink

    Returns an expression that matches the receiver repeated at least once.

    Returns an expression that matches the receiver repeated at least once.

    See also

    Quantifiable#+

  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def optional(mode: Mode = Greedy): Optional

    Permalink

    Returns an expression that matches the receiver appearing once or not at all.

    Returns an expression that matches the receiver appearing once or not at all.

    See also

    Quantifiable#?

  28. final def repeat(n: Int, mode: Mode = Greedy): RepeatExactly

    Permalink

    Returns an expression that matches the receiver repeated the specified number of times.

    Returns an expression that matches the receiver repeated the specified number of times.

    n

    the exact number of times the pattern must be repeated for the quantified expression to match; must be >= 0.

    Exceptions thrown

    IllegalArgumentException if n < 0.

  29. final def repeatRange(min: Int, max: Int, mode: Mode = Greedy): RepeatRange

    Permalink

    Returns an expression that matches the receiver repeated a number of times within the specified range.

    Returns an expression that matches the receiver repeated a number of times within the specified range.

    min

    the minimum number of times that the pattern may be repeated; must be >= 0.

    max

    the maximum number of times that the pattern may be repeated; must be >= min.

    Exceptions thrown

    IllegalArgumentException if min < 0 or max < min.

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. final def toPattern: Pattern

    Permalink

    Passes the regular expression represented by this object to java.util.regex.Pattern and returns the result.

    Passes the regular expression represented by this object to java.util.regex.Pattern and returns the result.

    Definition Classes
    Expression
  32. final def toRegex(groupNames: String*): Regex

    Permalink

    Uses the regular expression represented by this object to construct a scala.util.matching.Regex.

    Uses the regular expression represented by this object to construct a scala.util.matching.Regex.

    Definition Classes
    Expression
  33. final def toString(): String

    Permalink

    Always returns the same value as Expression#expression.

    Always returns the same value as Expression#expression.

    Definition Classes
    Expression → AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Expression

Inherited from Immutable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped