Scala Compiler2.13.0 < Back


# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package transform
  Definition Classes
    nsc
-  abstract class Erasure extends SubComponent with InfoTransform with reflect.internal.transform.Erasure with Analyzer with TypingTransformers with TreeDSL with TypeAdaptingTransformer
  Definition Classes
    transform
- AbsAmbiguousTypeError
- AbsTypeError
- AccessTypeError
- Adaptation
- AdjustedTypeArgs
- AmbiguousImplicitTypeError
- AmbiguousTypeError
- AnalyzerPlugin
- CODE
- CacheAttachment
- CaseApplyDefaultGetters
- ClassForCaseCompanionAttachment
- ClassMethodSynthesis
- CompleterWrapper
- ConstructorDefaultsAttachment
- Context
- ContextReporter
- DefMacroExpander
- DefaultsOfLocalMethodAttachment
- Delayed
- DivergentImplicitTypeError
- DynamicRewriteAttachment
- EnterBridges
- Eraser
- ErasureMap
- ErasureTransformer
- ErrorUtils
- Failure
- Fallback
- Function1
- GenerateBridges
- GenericArray
- HasMember
- HasMethodMatching
- HasUnapply
- ImplicitAmbiguousMsg
- ImplicitAnnotationMsg
- ImplicitInfo
- ImplicitNotFoundMsg
- ImplicitSearch
- ImplicitsContextErrors
- ImportContext
- ImportInfo
- InferCheckable
- Inferencer
- InferencerContextErrors
- JavaErasureMap
- JavaReflectionResolvers
- LockingTypeCompleter
- MacroArgs
- MacroExpander
- MacroExpanderAttachment
- MacroExpansionAttachment
- MacroImplBinding
- MacroImplRefAttachment
- MacroPlugin
- MacroRuntimeAttachment
- MacroRuntimeResolver
- MacroStatus
- Message
- MethodSynth
- NamedApplyBlock
- NamedApplyInfo
- Namer
- NamerContextErrors
- NamesDefaultsErrorsGen
- NoContext
- NoInstance
- NormalTypeError
- OpenImplicit
- OriginalTreeAttachment
- PatternTyper
- Phase
- PolyTypeCompleter
- PosAndMsgTypeError
- RichTree
- ScalaErasureMap
- SearchResult
- Shadower
- SilentResult
- SilentResultValue
- SilentTypeError
- Skipped
- StabilizingDefinitions
- StdPhase
- Success
- SuperArgsAttachment
- SuppressMacroExpansionAttachment
- SymbolCompleterAttachment
- SymbolExpansionAttachment
- SymbolSourceAttachment
- SymbolTypeError
- Tag
- TreeTypeError
- TypeAdapter
- TypeCompleter
- TypeCompleterBase
- TypeDiag
- TypeErrorWithUnderlyingTree
- TypeErrorWrapper
- TypedExpectingUnitAttachment
- Typer
- TyperContextErrors
- TyperDiagnostics
- TypingTransformer
- UnapplyMemberResult
- UnknownSig
- WeakSymbolAttachment
- approximateAbstracts
- checkDead
- checkNoEscaping
- checkUnused
- instantiate
- javaErasure
- namerFactory
- packageObjects
- specialScalaErasure
- toOrigin
- typerFactory
- typingStack

c

scala.tools.nsc.transform.Erasure

# GenerateBridges

###

#### class GenerateBridges extends EnterBridges

Source
  Erasure.scala

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

1. Alphabetic
2. By Inheritance

Inherited

1. GenerateBridges
2. EnterBridges
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 GenerateBridges(unit: Global.CompilationUnit, root: 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
     This member is added by an implicit conversion from GenerateBridges toany2stringadd[GenerateBridges] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (GenerateBridges, B)
   Implicit
     This member is added by an implicit conversion from GenerateBridges toArrowAssoc[GenerateBridges] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  def addBridge(bridge: Global.Symbol, member: Global.Symbol, other: Global.Symbol): Unit
   Definition Classes
     GenerateBridges → EnterBridges
7.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
8.  val bridgeTarget: HashMap[Global.Symbol, Global.Symbol]
   Definition Classes
     EnterBridges
9.  var bridges: collection.immutable.List[Global.Tree]
10.  val bridgesScope: Global.Scope
    Definition Classes
      EnterBridges
11.  def checkBridgeOverrides(member: Global.Symbol, other: Global.Symbol, bridge: Global.Symbol): collection.Seq[(Global.Position, String)]

    Check that a bridge only overrides members that are also overridden by the original member.

    Check that a bridge only overrides members that are also overridden by the original member. This test is necessary only for members that have a value class in their type. Such members are special because their types after erasure and after post-erasure differ/. This means we generate them after erasure, but the post-erasure transform might introduce a name clash. The present method guards against these name clashes.

    member

      The original member

    other

      The overridden symbol for which the bridge was generated

    bridge

      The bridge

    Definition Classes
      EnterBridges
12.  def checkPair(pair: SymbolPair): Unit

    TODO - work through this logic with a fine-toothed comb, incorporating into SymbolPairs where appropriate.

    TODO - work through this logic with a fine-toothed comb, incorporating into SymbolPairs where appropriate.

    Definition Classes
      EnterBridges
13.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.CloneNotSupportedException]) @native()
14.  def computeAndEnter(): Unit
    Definition Classes
      EnterBridges
15.  def ensuring(cond: (GenerateBridges) => Boolean, msg: => Any): GenerateBridges
    Implicit
      This member is added by an implicit conversion from GenerateBridges toEnsuring[GenerateBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
16.  def ensuring(cond: (GenerateBridges) => Boolean): GenerateBridges
    Implicit
      This member is added by an implicit conversion from GenerateBridges toEnsuring[GenerateBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
17.  def ensuring(cond: Boolean, msg: => Any): GenerateBridges
    Implicit
      This member is added by an implicit conversion from GenerateBridges toEnsuring[GenerateBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
18.  def ensuring(cond: Boolean): GenerateBridges
    Implicit
      This member is added by an implicit conversion from GenerateBridges toEnsuring[GenerateBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
19.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
20.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
21.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
22.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from GenerateBridges toStringFormat[GenerateBridges] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
23.  def generate(): (List[Global.Tree], Set[Global.Symbol])
24.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
25.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
26.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
27.  final def makeBridgeDefDef(bridge: Global.Symbol, member: Global.Symbol, other: Global.Symbol): Global.DefDef
28.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
29.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
30.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
31.  val opc: Global.overridingPairs.BridgesCursor
    Definition Classes
      EnterBridges
32.  val site: Global.Type
    Definition Classes
      EnterBridges
33.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
34.  var toBeRemoved: Set[Global.Symbol]
35.  def toString(): String
    Definition Classes
      AnyRef → Any
36.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
37.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
38.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Deprecated Value Members

1.  def →[B](y: B): (GenerateBridges, B)
   Implicit
     This member is added by an implicit conversion from GenerateBridges toArrowAssoc[GenerateBridges] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.13.0) Use `->` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

### Inherited from EnterBridges

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd fromGenerateBridges to any2stringadd[GenerateBridges]

### Inherited by implicit conversion StringFormat fromGenerateBridges to StringFormat[GenerateBridges]

### Inherited by implicit conversion Ensuring fromGenerateBridges to Ensuring[GenerateBridges]

### Inherited by implicit conversion ArrowAssoc fromGenerateBridges to ArrowAssoc[GenerateBridges]

### Ungrouped