scala.tools.nsc.backend.icode.GenICode

Label

class Label extends AnyRef

Represent a label in the current method code. In order to support forward jumps, labels can be created without having a deisgnated target block. They can later be attached by calling anchor.

Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Label
  2. AnyRef
  3. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Label(symbol: Global.Symbol)

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 Label to StringAdd[Label] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Label, B)

    Implicit information
    This member is added by an implicit conversion from Label to ArrowAssoc[Label] performed by method ArrowAssoc 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 addCallingInstruction(i: Global.icodes.Instruction): Unit

    Add an instruction that refers to this label.

  9. def anchor(b: Global.icodes.BasicBlock): Label

    Fix this label to the given basic block.

  10. var anchored: Boolean

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. var block: Global.icodes.BasicBlock

  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def ensuring(cond: (Label) ⇒ Boolean, msg: ⇒ Any): Label

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

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

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

    Implicit information
    This member is added by an implicit conversion from Label to Ensuring[Label] 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 information
    This member is added by an implicit conversion from Label to StringFormat[Label] 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. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. var params: List[Global.Symbol]

  29. def patch(instr: Global.icodes.Instruction): Global.icodes.Instruction

    Return the patched instruction.

    Return the patched instruction. If the given instruction jumps to this label, replace it with the basic block. Otherwise, return the same instruction. Conditional jumps have more than one label, so they are replaced only if all labels are anchored.

  30. def patch(code: Global.icodes.Code): Unit

    Patch the code by replacing pseudo call instructions with jumps to the given basic block.

  31. def setParams(p: List[Global.Symbol]): Label

  32. val symbol: Global.Symbol

  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    Label → AnyRef → Any
  35. final def wait(): Unit

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

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

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

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

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from Label to StringAdd[Label]

Inherited by implicit conversion StringFormat from Label to StringFormat[Label]

Inherited by implicit conversion Ensuring from Label to Ensuring[Label]

Inherited by implicit conversion ArrowAssoc from Label to ArrowAssoc[Label]

Ungrouped