Scala Compiler 2.13.16 - scala.tools.nsc.transform.Erasure.EnterBridges
Keywords: Scala Compiler 2.13.16 scala.tools.nsc.transform.Erasure.EnterBridges

Scala Compiler2.13.16 < 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

# EnterBridges

###

#### class EnterBridges extends AnyRef

Source
  Erasure.scala

Linear Supertypes
AnyRef, Any
Known Subclasses
GenerateBridges
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. EnterBridges
2. AnyRef
3. 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 EnterBridges(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 EnterBridges toany2stringadd[EnterBridges] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (EnterBridges, B)
   Implicit
     This member is added by an implicit conversion from EnterBridges toArrowAssoc[EnterBridges] 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
   Attributes
     protected
7.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
8.  val bridgeTarget: HashMap[Global.Symbol, Global.Symbol]
9.  val bridgesScope: Global.Scope
10.  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

11.  def checkPair(pair: SymbolPair): Unit

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

12.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.CloneNotSupportedException]) @native()
13.  def computeAndEnter(): Unit
14.  def ensuring(cond: (EnterBridges) => Boolean, msg: => Any): EnterBridges
    Implicit
      This member is added by an implicit conversion from EnterBridges toEnsuring[EnterBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
15.  def ensuring(cond: (EnterBridges) => Boolean): EnterBridges
    Implicit
      This member is added by an implicit conversion from EnterBridges toEnsuring[EnterBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
16.  def ensuring(cond: Boolean, msg: => Any): EnterBridges
    Implicit
      This member is added by an implicit conversion from EnterBridges toEnsuring[EnterBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
17.  def ensuring(cond: Boolean): EnterBridges
    Implicit
      This member is added by an implicit conversion from EnterBridges toEnsuring[EnterBridges] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
18.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
19.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
20.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
21.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
22.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
23.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
24.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
25.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
26.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
27.  val opc: Global.overridingPairs.BridgesCursor
28.  val site: Global.Type
29.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
30.  def toString(): String
    Definition Classes
      AnyRef → Any
31.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
32.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
33.  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 EnterBridges toStringFormat[EnterBridges] 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): (EnterBridges, B)
   Implicit
     This member is added by an implicit conversion from EnterBridges toArrowAssoc[EnterBridges] 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 AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd fromEnterBridges to any2stringadd[EnterBridges]

### Inherited by implicit conversion StringFormat fromEnterBridges to StringFormat[EnterBridges]

### Inherited by implicit conversion Ensuring fromEnterBridges to Ensuring[EnterBridges]

### Inherited by implicit conversion ArrowAssoc fromEnterBridges to ArrowAssoc[EnterBridges]

### Ungrouped