Class/Object

io.github.reggert.reb4s.charclass

CharClass

Related Docs: object CharClass | package charclass

Permalink

abstract class CharClass extends Expression with Alternative with Sequenceable with Quantifiable

Base class representing an expression that matches a single character within a class of characters.

Annotations
@SerialVersionUID()
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharClass
  2. Quantifiable
  3. Sequenceable
  4. Alternative
  5. Expression
  6. Immutable
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CharClass()

    Permalink

Abstract Value Members

  1. abstract def independentForm: String

    Permalink

    The regular expression string that can be used independently of square brackets.

    The regular expression string that can be used independently of square brackets.

    Attributes
    protected[io.github.reggert.reb4s.charclass]
  2. abstract def negated: CharClass

    Permalink

    Returns an expressing matching a single character that is not within the class of characters matched by this expression.

  3. abstract def unitableForm: String

    Permalink

    The regular expression string that can be used within square brackets to merge with other character classes.

    The regular expression string that can be used within square brackets to merge with other character classes.

    Attributes
    protected[io.github.reggert.reb4s.charclass]

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &&(right: Intersection): Intersection

    Permalink

    Returns the intersection of this character class with the specified character classes.

  4. def &&(right: CharClass): Intersection

    Permalink

    Returns the intersection of this character class with the specified character class.

  5. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#anyTimes

  6. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#anyTimes

  7. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#anyTimes

  8. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#atLeastOnce

  9. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#atLeastOnce

  10. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#atLeast

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#optional

  13. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#optional

  14. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#optional

  15. final def andThen(right: Sequence): Sequence

    Permalink

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable
  16. final def andThen(right: Sequenceable): Sequence

    Permalink

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable
  17. final def anyTimes(mode: Mode = Greedy): AnyTimes

    Permalink

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

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

    Definition Classes
    Quantifiable
  18. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  19. 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;

    Definition Classes
    Quantifiable
    Exceptions thrown

    IllegalArgumentException if n < 0.

  20. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#+

  21. final def boundedLength: Some[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
    CharClassExpression
  22. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. final 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
    CharClassExpression
  26. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def intersect(right: Intersection): Intersection

    Permalink

    Returns the intersection of this character class with the specified character classes.

  30. final def intersect(right: CharClass): Intersection

    Permalink

    Returns the intersection of this character class with the specified character class.

  31. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  35. 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.

    Definition Classes
    Quantifiable
    See also

    Quantifiable#?

  36. final def or(right: CharClass): Union

    Permalink

    Returns the union of this character class with the specified character class.

  37. final def or(right: Union): Union

    Permalink

    Returns the union of this character class with the specified character classes.

  38. final def or(right: Alternative): Alternation

    Permalink

    Constructs an expression matching either the receiver or the specified argument expression.

    Constructs an expression matching either the receiver or the specified argument expression.

    Definition Classes
    Alternative
  39. final def or(right: Alternation): Alternation

    Permalink

    Constructs an expression matching either the receiver or the any of the alternatives contained within the specified argument expression.

    Constructs an expression matching either the receiver or the any of the alternatives contained within the specified argument expression.

    Definition Classes
    Alternative
  40. final 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
    CharClassExpression
  41. 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.

    Definition Classes
    Quantifiable
    Exceptions thrown

    IllegalArgumentException if n < 0.

  42. 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.

    Definition Classes
    Quantifiable
    Exceptions thrown

    IllegalArgumentException if min < 0 or max < min.

  43. final 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
    CharClassExpression
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. 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
  46. 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
  47. 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
  48. final def unary_~: CharClass

    Permalink

    Returns an expressing matching a single character that is not within the class of characters matched by this expression.

  49. final def union(right: CharClass): Union

    Permalink

    Returns the union of this character class with the specified character class.

  50. final def union(right: Union): Union

    Permalink

    Returns the union of this character class with the specified character classes.

  51. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def ||(right: CharClass): Union

    Permalink

    Returns the union of this character class with the specified character classes.

  55. def ||(right: Union): Union

    Permalink

    Returns the union of this character class with the specified character class.

  56. def ||(right: Alternative): Alternation

    Permalink

    Constructs an expression matching either the receiver or the specified argument expression.

    Constructs an expression matching either the receiver or the specified argument expression.

    Definition Classes
    Alternative
  57. def ||(right: Alternation): Alternation

    Permalink

    Constructs an expression matching either the receiver or the any of the alternatives contained within the specified argument expression.

    Constructs an expression matching either the receiver or the any of the alternatives contained within the specified argument expression.

    Definition Classes
    Alternative
  58. def ~~(right: Sequence): Sequence

    Permalink

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable
  59. def ~~(right: Sequenceable): Sequence

    Permalink

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable

Inherited from Quantifiable

Inherited from Sequenceable

Inherited from Alternative

Inherited from Expression

Inherited from Immutable

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped