Packages

object Pattern extends Serializable

Pattern nodes and utilities.

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Pattern
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait AtomNode extends HasLocation with Serializable with Product

    AtomNode is a node of pattern to match a character.

  2. final case class BackReference(index: Int) extends Node with Product with Serializable

    BackReference is a back-reference pattern.

    BackReference is a back-reference pattern. (e.g. /\1/)

  3. final case class Capture(index: Int, child: Node) extends Node with Product with Serializable

    Capture is a capture pattern.

    Capture is a capture pattern. (e.g. /(x)/)

  4. final case class Character(value: UChar) extends Node with ClassNode with Product with Serializable

    Character is a single character in pattern.

    Character is a single character in pattern. (e.g. /x/)

  5. final case class CharacterClass(invert: Boolean, children: Seq[ClassNode]) extends Node with AtomNode with Product with Serializable

    CharacterClass is a class (set) pattern of characters.

    CharacterClass is a class (set) pattern of characters. (e.g. /[a-z]/ or /[^A-Z]/)

  6. sealed trait ClassNode extends AtomNode

    ClassNode is a node of pattern AST, but it can appear as a class child.

    ClassNode is a node of pattern AST, but it can appear as a class child.

    This type does not inherit Node because ClassRange can appear as a class child only.

  7. final case class ClassRange(begin: UChar, end: UChar) extends ClassNode with Product with Serializable

    ClassRange is a character range pattern in a class.

  8. final case class Disjunction(children: Seq[Node]) extends Node with Product with Serializable

    Disjunction is a disjunction of patterns.

    Disjunction is a disjunction of patterns. (e.g. /x|y|z/)

  9. final case class Dot() extends Node with Product with Serializable

    Dot is any characters pattern.

    Dot is any characters pattern. (e.g. /./)

    This does not inherit AtomNode intentionally because this toIChar needs dotAll flag information.

  10. sealed abstract class EscapeClassKind extends Serializable with Product

    EscapeClassKind is a kind of SimpleEscapeClass.

  11. final case class FlagSet(global: Boolean, ignoreCase: Boolean, multiline: Boolean, dotAll: Boolean, unicode: Boolean, sticky: Boolean) extends Product with Serializable

    FlagSet is a set of flag of pattern.

    FlagSet is a set of flag of pattern.

    • global is g flag.
    • ignoreCase is i flag.
    • multiline is m flag.
    • dotAll is s flag.
    • unicode is u flag.
    • sticky is y flag.
  12. final case class Group(child: Node) extends Node with Product with Serializable

    Group is a grouping of a pattern.

    Group is a grouping of a pattern. (e.g. /(?:x)/)

  13. trait HasLocation extends Cloneable

    HasLocation is a base class having a location.

  14. final case class LineBegin() extends Node with Product with Serializable

    LineBegin is a begin-of-line assertion pattern.

    LineBegin is a begin-of-line assertion pattern. (e.g. /^/)

  15. final case class LineEnd() extends Node with Product with Serializable

    LineEnd is an end-of-line assertion pattern.

    LineEnd is an end-of-line assertion pattern. (e.g. /$/)

  16. final case class Location(start: Int, end: Int) extends Product with Serializable

    Location is a location of a node in a source.

  17. final case class LookAhead(negative: Boolean, child: Node) extends Node with Product with Serializable

    LookAhead is a look-ahead assertion of a pattern.

    LookAhead is a look-ahead assertion of a pattern. (e.g. /(?=x)/ or /(?!x)/)

  18. final case class LookBehind(negative: Boolean, child: Node) extends Node with Product with Serializable

    LookBehind is a look-behind assertion of a pattern.

    LookBehind is a look-behind assertion of a pattern. (e.g. /(?<=x)/ or /(?<!x)/)

  19. final case class NamedBackReference(index: Int, name: String) extends Node with Product with Serializable

    NamedBackReference is a back-reference pattern.

    NamedBackReference is a back-reference pattern. (e.g. /\k<foo>/)

  20. final case class NamedCapture(index: Int, name: String, child: Node) extends Node with Product with Serializable

    NamedCapture is a named capture pattern.

    NamedCapture is a named capture pattern. (e.g. /(?<foo>x)/)

  21. sealed abstract class Node extends HasLocation with Serializable with Product

    Node is a node of pattern AST (abstract syntax tree).

  22. sealed abstract class NormalizedQuantifier extends Quantifier

    NormalizedQuantifier is a normalized version of Quantifier.

  23. sealed abstract class Quantifier extends HasLocation with Serializable with Product

    Quantifier is a repetition quantifier.

  24. final case class Repeat(quantifier: Quantifier, child: Node) extends Node with Product with Serializable

    Repeat is a repetition pattern.

  25. final case class Sequence(children: Seq[Node]) extends Node with Product with Serializable

    Sequence is a sequence of patterns.

    Sequence is a sequence of patterns. (e.g. /xyz/)

  26. final case class SimpleEscapeClass(invert: Boolean, kind: EscapeClassKind) extends Node with ClassNode with Product with Serializable

    SimpleEscapeClass is an escape class.

    SimpleEscapeClass is an escape class. (e.g. /\w/ or /\s/)

  27. final case class UnicodeProperty(invert: Boolean, name: String, contents: IChar) extends Node with ClassNode with Product with Serializable

    UnicodeProperty is an escape class of Unicode property.

    UnicodeProperty is an escape class of Unicode property. (e.g. /\p{ASCII}/ or /\P{L}/)

  28. final case class UnicodePropertyValue(invert: Boolean, name: String, value: String, contents: IChar) extends Node with ClassNode with Product with Serializable

    UnicodePropertyValue is an escape class of Unicode property and value.

    UnicodePropertyValue is an escape class of Unicode property and value. (e.g. /\p{sc=Hira}/ or /\P{General_Category=No}/)

  29. final case class WordBoundary(invert: Boolean) extends Node with Product with Serializable

    WordBoundary is a word-boundary assertion pattern.

    WordBoundary is a word-boundary assertion pattern. (e.g. /\b/ or /\B/)

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  14. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. object EscapeClassKind extends Serializable

    EscapeClassKind values.

  20. object Quantifier extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped