Scala Compiler2.12.0 < Back
 

# Packages

-  package root

  The Scala compiler API.

  The Scala compiler API.

  The following resources are useful for Scala plugin/compiler development:

  - Scala development tutorials on www.scala-lang.org
  - Scala Internals wiki
  - Scala compiler corner, maintained by Miguel
  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package transform
  Definition Classes
    nsc
-  package patmat
  Definition Classes
    transform
-  trait MatchOptimization extends MatchTreeMaking with MatchAnalysis

  Optimize and analyze matches based on their TreeMaker-representation.

  Optimize and analyze matches based on their TreeMaker-representation.

  The patmat translation doesn't rely on this, so it could be disabled in principle.

  - well, not quite: the backend crashes if we emit duplicates in switches (e.g. SI-7290)
  Definition Classes
    patmat
-  trait SwitchEmission extends TreeMakers with MatchMonadInterface
  Definition Classes
    MatchOptimization
- AbsCodegen
- AlternativesTreeMaker
- BodyTreeMaker
- Casegen
- CommonCodegen
- CondTreeMaker
- EmptySubstitution
- EqualityTestTreeMaker
- ExtractorTreeMaker
- FunTreeMaker
- GuardTreeMaker
- IrrefutableExtractorTreeMaker
- NoNewBinders
- PreserveSubPatBinders
- ProductExtractorTreeMaker
- RegularSwitchMaker
- SubstOnlyTreeMaker
- Substitution
- SwitchMaker
- TreeMaker
- TrivialTreeMaker
- TypeTestTreeMaker

c

scala.tools.nsc.transform.patmat.MatchOptimization.SwitchEmission

# RegularSwitchMaker 

###

#### class RegularSwitchMaker extends SwitchMaker

Source
  MatchOptimization.scala

Linear Supertypes
SwitchMaker, AnyRef, Any
Type Hierarchy
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. RegularSwitchMaker
2. SwitchMaker
3. AnyRef
4. 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 RegularSwitchMaker(scrutSym: Global.Symbol, matchFailGenOverride: Option[(Global.Tree) ⇒ Global.Tree], unchecked: Boolean)

### Type Members

1.  abstract class SwitchableTreeMakerExtractor extends AnyRef
   Definition Classes
     SwitchMaker

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  def +(other: String): String
   Implicit
     This member is added by an implicit conversion from RegularSwitchMaker to any2stringadd[RegularSwitchMaker] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (RegularSwitchMaker, B)
   Implicit
     This member is added by an implicit conversion from RegularSwitchMaker to ArrowAssoc[RegularSwitchMaker] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  val alternativesSupported: Boolean
   Definition Classes
     RegularSwitchMaker → SwitchMaker
7.  def apply(cases: List[(Global.Symbol, List[SwitchEmission.TreeMaker])], pt: Global.Type): List[Global.CaseDef]
   Definition Classes
     SwitchMaker
8.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
9.  val canJump: Boolean
   Definition Classes
     RegularSwitchMaker → SwitchMaker
10.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
11.  def defaultBody: Global.Tree
    Definition Classes
      RegularSwitchMaker → SwitchMaker
12.  def defaultCase(scrutSym: Global.Symbol = defaultSym, guard: Global.Tree = EmptyTree, body: Global.Tree = defaultBody): Global.CaseDef
    Definition Classes
      RegularSwitchMaker → SwitchMaker
13.  def defaultSym: Global.Symbol
    Definition Classes
      RegularSwitchMaker → SwitchMaker
14.  def ensuring(cond: (RegularSwitchMaker) ⇒ Boolean, msg: ⇒ Any): RegularSwitchMaker
    Implicit
      This member is added by an implicit conversion from RegularSwitchMaker to Ensuring[RegularSwitchMaker] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
15.  def ensuring(cond: (RegularSwitchMaker) ⇒ Boolean): RegularSwitchMaker
    Implicit
      This member is added by an implicit conversion from RegularSwitchMaker to Ensuring[RegularSwitchMaker] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
16.  def ensuring(cond: Boolean, msg: ⇒ Any): RegularSwitchMaker
    Implicit
      This member is added by an implicit conversion from RegularSwitchMaker to Ensuring[RegularSwitchMaker] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
17.  def ensuring(cond: Boolean): RegularSwitchMaker
    Implicit
      This member is added by an implicit conversion from RegularSwitchMaker to Ensuring[RegularSwitchMaker] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
18.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
19.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
20.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
21.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from RegularSwitchMaker to StringFormat[RegularSwitchMaker] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
22.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
23.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
24.  def isDefault(x: Global.CaseDef): Boolean
    Definition Classes
      RegularSwitchMaker → SwitchMaker
25.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
26.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
27.  final def notify(): Unit
    Definition Classes
      AnyRef
28.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
29.  val switchableTpe: Set[Global.Type]
30.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
31.  def toString(): String
    Definition Classes
      AnyRef → Any
32.  val unchecked: Boolean
    Definition Classes
      RegularSwitchMaker → SwitchMaker
33.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
34.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
35.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
36.  def →[B](y: B): (RegularSwitchMaker, B)
    Implicit
      This member is added by an implicit conversion from RegularSwitchMaker to ArrowAssoc[RegularSwitchMaker] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc
37.  object SwitchablePattern
38.  object SwitchableTreeMaker extends SwitchableTreeMakerExtractor
    Definition Classes
      RegularSwitchMaker → SwitchMaker
39.  object GuardAndBodyTreeMakers
    Definition Classes
      SwitchMaker

### Inherited from SwitchMaker

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from RegularSwitchMaker to any2stringadd[RegularSwitchMaker]

### Inherited by implicit conversion StringFormat from RegularSwitchMaker to StringFormat[RegularSwitchMaker]

### Inherited by implicit conversion Ensuring from RegularSwitchMaker to Ensuring[RegularSwitchMaker]

### Inherited by implicit conversion ArrowAssoc from RegularSwitchMaker to ArrowAssoc[RegularSwitchMaker]

### Ungrouped