A class to represent a group of pattern.
An interpolation for named patterns.
A map that can store multiple values with the same key.
A map that can store multiple values with the same key.
It returns multiple values by getAll()
method. All the other
methods are the same as single-valued maps; apply()
or get()
returns the first value.
A class to make a named pattern representation from a Pattern
.
A class to make a named pattern representation from a Pattern
.
This class is inteded to be used to declare a named pattern by
extending the class to a case object
, with a Pattern
, which
may include some named subpatterns. For example, assuming that
pattern
interpolation generates a Pattern
with some named
patterns embedded,
case object SomeName extends NestedGroup(pattern"/$AnotherName/$YetAnotherName")
SomeName
defines a named pattern matches with the whole pattern
captured as a group like one definition by Pattern
.
A class to describe a pattern with named capturing groups.
A class to make an unnamed pattern representation from a Pattern
.
A class to make an unnamed pattern representation from a Pattern
.
This class is quite the same as NestedGroup
except that the
whole pattern does neither have a name nor be captured as a group.
A class to represent a group of pattern.
This class is inteded to be used to declare a named pattern by extending the class to a
case object
. For example,SomeName
defines a pattern matches with lower case alphabets captured as a group. The name of the group defaults to the value ofSomeName.toString
. Note that the default value oftoString
for acase object
is the name of the object, which is"SomeName"
in this example.