Class

scala.reflect.api.Trees

MatchExtractor

Related Doc: package Trees

Permalink

abstract class MatchExtractor extends AnyRef

An extractor class to create and pattern match with syntax Match(selector, cases). This AST node corresponds to the following Scala code:

selector match { cases }

Match is also used in pattern matching assignments like val (foo, bar) = baz.

Source
Trees.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchExtractor
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatchExtractor()

    Permalink

Abstract Value Members

  1. abstract def apply(selector: Universe.Tree, cases: List[Universe.CaseDef]): Universe.Match

    Permalink
  2. abstract def unapply(match_: Universe.Match): Option[(Universe.Tree, List[Universe.CaseDef])]

    Permalink