Returns all subpatterns with their names.
Returns all subpatterns with their names.
Returns all the group names of subpatterns.
Returns all the group names of subpatterns.
Returns the group name
Returns the group name
Returns subpatterns with their names.
Returns subpatterns with their names.
Returns the group names of subpatterns.
Returns the group names of subpatterns.
Returns the defined pattern.
Returns the defined 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 aPattern
, which may include some named subpatterns. For example, assuming thatpattern
interpolation generates aPattern
with some named patterns embedded,SomeName
defines a named pattern matches with the whole pattern captured as a group like one definition byPattern
.