scala.tools.nsc.backend.opt.InlineExceptionHandlers

InlineExceptionHandlersPhase

class InlineExceptionHandlersPhase extends ICodePhase

Inlining Exception Handlers

Source
InlineExceptionHandlers.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InlineExceptionHandlersPhase
  2. ICodePhase
  3. GlobalPhase
  4. Phase
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InlineExceptionHandlersPhase(prev: Phase)

Type Members

  1. type Id = Int

    Definition Classes
    Phase

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (InlineExceptionHandlersPhase, B)

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def apply(c: IClass): Unit

    Apply exception handler inlining to a class

    Apply exception handler inlining to a class

    Definition Classes
    InlineExceptionHandlersPhaseICodePhase
  9. def apply(unit: CompilationUnit): Unit

    Definition Classes
    ICodePhaseGlobalPhase
  10. final def applyPhase(unit: CompilationUnit): Unit

    Definition Classes
    GlobalPhase
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def cancelled(unit: CompilationUnit): Boolean

    Is current phase cancelled on this unit?

    Is current phase cancelled on this unit?

    Definition Classes
    GlobalPhase
  13. def checkable: Boolean

    Definition Classes
    Phase
  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def description: String

    Definition Classes
    Phase
  16. def ensuring(cond: (InlineExceptionHandlersPhase) ⇒ Boolean, msg: ⇒ Any): InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (InlineExceptionHandlersPhase) ⇒ Boolean): InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def equals(other: Any): Boolean

    Definition Classes
    Phase → AnyRef → Any
  22. def erasedTypes: Boolean

    Definition Classes
    ICodePhaseGlobalPhasePhase
  23. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  24. def findExceptionHandler(thrownException: TypeKind, handlers: List[BasicBlock]): Option[(BasicBlock, TypeKind)]

    Finds the first exception handler that matches the current exception

    Finds the first exception handler that matches the current exception

    Note the following code:

    try {
      throw new IllegalArgumentException("...")
    } catch {
      case e: RuntimeException => log("RuntimeException")
      case i: IllegalArgumentException => log("IllegalArgumentException")
    }

    will print "RuntimeException" => we need the *first* valid handler

    There's a hidden catch here: say we have the following code:

    try {
      val exception: Throwable =
        if (scala.util.Random.nextInt % 2 == 0)
          new IllegalArgumentException("even")
        else
          new StackOverflowError("odd")
      throw exception
    } catch {
      case e: IllegalArgumentException =>
        println("Correct, IllegalArgumentException")
      case e: StackOverflowError =>
        println("Correct, StackOverflowException")
      case t: Throwable =>
        println("WROOOONG, not Throwable!")
    }

    We don't want to select a handler if there's at least one that's more specific!

  25. def flagMask: Long

    Definition Classes
    Phase
  26. def flatClasses: Boolean

    Definition Classes
    GlobalPhasePhase
  27. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def hasNext: Boolean

    Definition Classes
    Phase
  30. def hashCode(): Int

    Definition Classes
    Phase → AnyRef → Any
  31. val id: Id

    Definition Classes
    Phase
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def iterator: Iterator[Phase]

    Definition Classes
    Phase
  34. def keepsTypeParams: Boolean

    This is used only in unsafeTypeParams, and at this writing is overridden to false in parser, namer, typer, and erasure.

    This is used only in unsafeTypeParams, and at this writing is overridden to false in parser, namer, typer, and erasure. (And NoPhase.)

    Definition Classes
    Phase
  35. def name: String

    Definition Classes
    InlineExceptionHandlersPhasePhase
  36. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  37. def newFlags: Long

    New flags visible once this phase has started

    New flags visible once this phase has started

    Definition Classes
    Phase
  38. def next: Phase

    Definition Classes
    Phase
  39. def nextFlags: Long

    New flags visible after this phase has completed

    New flags visible after this phase has completed

    Definition Classes
    Phase
  40. final def notify(): Unit

    Definition Classes
    AnyRef
  41. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  42. def refChecked: Boolean

    Definition Classes
    GlobalPhasePhase
  43. def run(): Unit

    Definition Classes
    GlobalPhasePhase
  44. val self: Any

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  45. val self: Any

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  46. def specialized: Boolean

    Definition Classes
    GlobalPhasePhase
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    Phase → AnyRef → Any
  49. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  51. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  52. def [B](y: B): (InlineExceptionHandlersPhase, B)

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: InlineExceptionHandlersPhase

    Implicit information
    This member is added by an implicit conversion from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from ICodePhase

Inherited from GlobalPhase

Inherited from Phase

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from InlineExceptionHandlersPhase to StringFormat

Inherited by implicit conversion any2stringadd from InlineExceptionHandlersPhase to StringAdd

Inherited by implicit conversion any2ArrowAssoc from InlineExceptionHandlersPhase to ArrowAssoc[InlineExceptionHandlersPhase]

Inherited by implicit conversion any2Ensuring from InlineExceptionHandlersPhase to Ensuring[InlineExceptionHandlersPhase]