Scala Compiler2.13.15 < 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
- BoxingErasure
- ByNameFormatter
- CODE
- CacheAttachment
- CaseApplyDefaultGetters
- Checkability
- ClassForCaseCompanionAttachment
- ClassMethodSynthesis
- CompleterWrapper
- ConstructorDefaultsAttachment
- Context
- ContextReporter
- ContextWarning
- DefMacroExpander
- DefaultsOfLocalMethodAttachment
- Delayed
- DivergentImplicitTypeError
- DynamicRewriteAttachment
- EnterBridges
- Eraser
- ErasureMap
- ErasureTransformer
- ErrorUtils
- Failure
- Fallback
- Function1
- FunctionFormatter
- GenerateBridges
- GenericArray
- HasMember
- HasMethodMatching
- HasUnapply
- ImplicitAmbiguousMsg
- ImplicitAnnotationMsg
- ImplicitError
- ImplicitErrorLink
- ImplicitErrorSpecifics
- ImplicitErrorTree
- ImplicitErrors
- 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
- Refined
- RefinedFormatter
- RichTree
- Scala2JavaArrayErasure
- Scala3ErasureMap
- ScalaErasureMap
- SearchResult
- Shadower
- SilentResult
- SilentResultValue
- SilentTypeError
- Skipped
- SpecialFormatter
- SpecialScalaErasure
- StdPhase
- Success
- SuperArgsAttachment
- SuppressMacroExpansionAttachment
- SymbolCompleterAttachment
- SymbolExpansionAttachment
- SymbolSourceAttachment
- SymbolTypeError
- Tag
- ThicketTransformer
- TreeTypeError
- TupleFormatter
- TypeAdapter
- TypeCompleter
- TypeCompleterBase
- TypeDiag
- TypeErrorWithUnderlyingTree
- TypeErrorWrapper
- TypeParts
- Typer
- TyperContextErrors
- TyperDiagnostics
- TypingTransformer
- UnapplyMemberResult
- UnknownSig
- UnusedPrivates
- 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. Protected

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

    That is, check that the signature of the bridge method does not accidentally override some other method, possibly written by the user or inherited.

    As an optimization, only perform this check for susceptible bridges.

    This test is necessary 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.

    A bridge might also introduce a signature that accidentally matches an existing method. In that case, it will have a parameter erased to the upper bound of a type parameter in the signature of the member overridden by the original member. (That upper bound might be `Object`.) By contrast, erasure of a parameter `List[A]` would already have induced an error if there were a matching member.

    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[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[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
22.  def generate(): (List[Global.Tree], Set[Global.Symbol])
23.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
24.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
25.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
26.  final def makeBridgeDefDef(bridge: Global.Symbol, member: Global.Symbol, other: Global.Symbol): Global.DefDef
27.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
28.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
29.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
30.  val opc: Global.overridingPairs.BridgesCursor
    Definition Classes
      EnterBridges
31.  val site: Global.Type
    Definition Classes
      EnterBridges
32.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
33.  var toBeRemoved: Set[Global.Symbol]
34.  def toString(): String
    Definition Classes
      AnyRef → Any
35.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
36.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
37.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Deprecated Value Members

1.  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
     @deprecated @inline()
   Deprecated

     (Since version 2.12.16) Use `formatString.format(value)` instead of `value.formatted(formatString)`, or use the `f""` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.

2.  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