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 any2stringadd
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: Any): Boolean

   Definition Classes
     AnyRef → Any

2. #### final def ##(): Int

   Definition Classes
     AnyRef → Any

3. #### def +(other: String): String

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

4. #### 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()

5. #### final def ==(arg0: Any): Boolean

   Definition Classes
     AnyRef → Any

6. #### def addCallingInstruction(i: Global.icodes.Instruction): Unit

   Add an instruction that refers to this label.

7. #### def anchor(b: Global.icodes.BasicBlock): Label

   Fix this label to the given basic block.

8. #### var anchored: Boolean

9. #### final def asInstanceOf[T0]: T0

   Definition Classes
     Any

10. #### var block: Global.icodes.BasicBlock

11. #### def clone(): AnyRef

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

12. #### 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

13. #### 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

14. #### 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

15. #### 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

16. #### final def eq(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

17. #### def equals(arg0: Any): Boolean

    Definition Classes
      AnyRef → Any

18. #### def finalize(): Unit

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )

19. #### 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()

20. #### final def getClass(): Class[_]

    Definition Classes
      AnyRef → Any

21. #### def hashCode(): Int

    Definition Classes
      AnyRef → Any

22. #### final def isInstanceOf[T0]: Boolean

    Definition Classes
      Any

23. #### final def ne(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

24. #### final def notify(): Unit

    Definition Classes
      AnyRef

25. #### final def notifyAll(): Unit

    Definition Classes
      AnyRef

26. #### var params: List[Global.Symbol]

27. #### 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.

28. #### def patch(code: Global.icodes.Code): Unit

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

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

30. #### val symbol: Global.Symbol

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

    Definition Classes
      AnyRef

32. #### def toString(): String

    Definition Classes
      Label → AnyRef → Any

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): (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 any2stringadd from Label to any2stringadd[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