Class/Object

scala.util.matching.Regex

Match

Related Docs: object Match | package Regex

Permalink

class Match extends MatchData

Provides information about a successful match.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Match
  2. MatchData
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Match(source: CharSequence, matcher: Matcher, groupNames: Seq[String])

    Permalink

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 ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def after(i: Int): CharSequence

    Permalink

    The char sequence after last character of match in group i, or null if nothing was matched for that group.

    The char sequence after last character of match in group i, or null if nothing was matched for that group.

    Definition Classes
    MatchData
  5. def after: CharSequence

    Permalink

    Returns char sequence after last character of match, or null if nothing was matched.

    Returns char sequence after last character of match, or null if nothing was matched.

    Definition Classes
    MatchData
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def before(i: Int): CharSequence

    Permalink

    The char sequence before first character of match in group i, or null if nothing was matched for that group.

    The char sequence before first character of match in group i, or null if nothing was matched for that group.

    Definition Classes
    MatchData
  8. def before: CharSequence

    Permalink

    The char sequence before first character of match, or null if nothing was matched.

    The char sequence before first character of match, or null if nothing was matched.

    Definition Classes
    MatchData
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def end(i: Int): Int

    Permalink

    The index following the last matched character in group i.

    The index following the last matched character in group i.

    Definition Classes
    MatchMatchData
  11. val end: Int

    Permalink

    The index following the last matched character.

    The index following the last matched character.

    Definition Classes
    MatchMatchData
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def force: Match.this.type

    Permalink

    The match itself with matcher-dependent lazy vals forced, so that match is valid even once matcher is advanced.

  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def group(id: String): String

    Permalink

    Returns the group with given name.

    Returns the group with given name.

    id

    The group name

    returns

    The requested group

    Definition Classes
    MatchData
    Exceptions thrown

    NoSuchElementException if the requested group name is not defined

  18. def group(i: Int): String

    Permalink

    The matched string in group i, or null if nothing was matched.

    The matched string in group i, or null if nothing was matched.

    Definition Classes
    MatchData
  19. def groupCount: Int

    Permalink

    The number of subgroups.

    The number of subgroups.

    Definition Classes
    MatchMatchData
  20. val groupNames: Seq[String]

    Permalink

    The names of the groups, or an empty sequence if none defined

    The names of the groups, or an empty sequence if none defined

    Definition Classes
    MatchMatchData
  21. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  23. def matched: String

    Permalink

    The matched string, or null if nothing was matched.

    The matched string, or null if nothing was matched.

    Definition Classes
    MatchData
  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. val source: CharSequence

    Permalink

    The source from which the match originated

    The source from which the match originated

    Definition Classes
    MatchMatchData
  28. def start(i: Int): Int

    Permalink

    The index of the first matched character in group i.

    The index of the first matched character in group i.

    Definition Classes
    MatchMatchData
  29. val start: Int

    Permalink

    The index of the first matched character.

    The index of the first matched character.

    Definition Classes
    MatchMatchData
  30. def subgroups: List[String]

    Permalink

    All capturing groups, i.e., not including group(0).

    All capturing groups, i.e., not including group(0).

    Definition Classes
    MatchData
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink

    The matched string; equivalent to matched.toString.

    The matched string; equivalent to matched.toString.

    Definition Classes
    MatchData → AnyRef → Any
  33. final def wait(): Unit

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

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

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

Inherited from MatchData

Inherited from AnyRef

Inherited from Any

Ungrouped