io.github.reggert.reb4s.Literal

CharLiteral

final case class CharLiteral(unescapedChar: Char) extends Literal with Quantifiable with Product with Serializable

Expression that matches a specific character.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CharLiteral
  2. Product
  3. Equals
  4. Quantifiable
  5. Literal
  6. Sequenceable
  7. Alternative
  8. Expression
  9. Immutable
  10. Serializable
  11. Serializable
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CharLiteral(unescapedChar: Char)

Value Members

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

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

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

    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

  4. final def *+: AnyTimes

    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

  5. final def *?: AnyTimes

    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

  6. final def +: AtLeastOnce

    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

  7. final def ++: AtLeastOnce

    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

  8. final def +?: AtLeastOnce

    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

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

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

    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

  11. final def ?+: Optional

    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

  12. final def ??: Optional

    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

  13. final def andThen(right: CompoundRaw): CompoundRaw

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

    Definition Classes
    Literal
  14. final def andThen(right: Raw): CompoundRaw

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

    Definition Classes
    Literal
  15. final def andThen(right: Literal): StringLiteral

    Concatenates this literal with the argument.

    Concatenates this literal with the argument.

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

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

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

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

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

    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
  19. final def asInstanceOf[T0]: T0

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

    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.

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

    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#+

  22. final def boundedLength: Some[Int]

    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
    LiteralExpression
  23. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  25. lazy val escaped: String

    The string in escaped form.

    The string in escaped form.

    Definition Classes
    Literal
  26. def expression: String

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

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

    Definition Classes
    LiteralExpression
  27. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

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

    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#?

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

    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
  35. final def or(right: Alternation): Alternation

    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
  36. final def possiblyZeroLength: Boolean

    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
    LiteralExpression
  37. final def repeat(n: Int, mode: Mode = Greedy): RepeatExactly

    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.

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

    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.

  39. final def repetitionInvalidatesBounds: Boolean

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

    Definition Classes
    AnyRef
  41. final def toPattern: Pattern

    Passes the regular expression represented by this object to java.

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

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

    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
  43. final def toString(): String

    Always returns the same value as Expression#expression.

    Always returns the same value as Expression#expression.

    Definition Classes
    Expression → AnyRef → Any
  44. val unescaped: String

    The literal string to be matched.

    The literal string to be matched.

    Definition Classes
    CharLiteralLiteral
  45. val unescapedChar: Char

  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def ||(right: Alternative): Alternation

    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
  50. def ||(right: Alternation): Alternation

    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
  51. final def ~~(right: CompoundRaw): CompoundRaw

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

    Definition Classes
    Literal
  52. final def ~~(right: Raw): CompoundRaw

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

    Definition Classes
    Literal
  53. final def ~~(right: Literal): StringLiteral

    Concatenates this literal with the argument.

    Concatenates this literal with the argument.

    Definition Classes
    Literal
  54. def ~~(right: Sequence): Sequence

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

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

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable

Inherited from Product

Inherited from Equals

Inherited from Quantifiable

Inherited from Literal

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