io.github.reggert.reb4s.Literal

StringLiteral

final case class StringLiteral(unescaped: String) extends Literal with Product with Serializable

Expression that matches a specific string.

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

Instance Constructors

  1. new StringLiteral(unescaped: String)

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 andThen(right: CompoundRaw): CompoundRaw

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

    Definition Classes
    Literal
  5. 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
  6. final def andThen(right: Literal): StringLiteral

    Concatenates this literal with the argument.

    Concatenates this literal with the argument.

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

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

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

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. 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
  11. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  13. lazy val escaped: String

    The string in escaped form.

    The string in escaped form.

    Definition Classes
    Literal
  14. 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
  15. def finalize(): Unit

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

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

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

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

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

    Definition Classes
    AnyRef
  21. 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
  22. 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
  23. 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
  24. 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
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. 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
  27. 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
  28. 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
  29. val unescaped: String

    The literal string to be matched.

    The literal string to be matched.

    Definition Classes
    StringLiteralLiteral
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. 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
  34. 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
  35. final def ~~(right: CompoundRaw): CompoundRaw

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

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

    Concatenates this literal with the specified raw expression.

    Concatenates this literal with the specified raw expression.

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

    Concatenates this literal with the argument.

    Concatenates this literal with the argument.

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

    Concatenates this expression with the argument.

    Concatenates this expression with the argument.

    Definition Classes
    Sequenceable
  39. 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 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