Packages

c

scala.reflect.api.Trees

TryExtractor

abstract class TryExtractor extends AnyRef

An extractor class to create and pattern match with syntax Try(block, catches, finalizer). This AST node corresponds to the following Scala code:

try block catch { catches } finally finalizer

If the finalizer is not present, the finalizer is set to EmptyTree.

Source
Trees.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TryExtractor
  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 TryExtractor()

Abstract Value Members

  1. abstract def apply(block: Universe.Tree, catches: List[Universe.CaseDef], finalizer: Universe.Tree): Universe.Try
  2. abstract def unapply(try_: Universe.Try): Option[(Universe.Tree, List[Universe.CaseDef], Universe.Tree)]