class GenerateBridges extends EnterBridges
- Source
- Erasure.scala
- Alphabetic
- By Inheritance
- GenerateBridges
- EnterBridges
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new GenerateBridges(unit: Global.CompilationUnit, root: Global.Symbol)
Type Members
-
class
BridgesCursor extends Global.overridingPairs.Cursor
- Definition Classes
- EnterBridges
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from GenerateBridges to any2stringadd[GenerateBridges] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (GenerateBridges, B)
- Implicit
- This member is added by an implicit conversion from GenerateBridges to ArrowAssoc[GenerateBridges] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addBridge(bridge: Global.Symbol, member: Global.Symbol, other: Global.Symbol): Unit
- Definition Classes
- GenerateBridges → EnterBridges
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
bridgeTarget: HashMap[Global.Symbol, Global.Symbol]
- Definition Classes
- EnterBridges
- var bridges: collection.immutable.List[Global.Tree]
-
val
bridgesScope: Global.Scope
- Definition Classes
- EnterBridges
-
def
checkBridgeOverrides(member: Global.Symbol, other: Global.Symbol, bridge: Global.Symbol): 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
-
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
computeAndEnter(): Unit
- Definition Classes
- EnterBridges
-
def
ensuring(cond: (GenerateBridges) ⇒ Boolean, msg: ⇒ Any): GenerateBridges
- Implicit
- This member is added by an implicit conversion from GenerateBridges to Ensuring[GenerateBridges] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (GenerateBridges) ⇒ Boolean): GenerateBridges
- Implicit
- This member is added by an implicit conversion from GenerateBridges to Ensuring[GenerateBridges] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): GenerateBridges
- Implicit
- This member is added by an implicit conversion from GenerateBridges to Ensuring[GenerateBridges] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): GenerateBridges
- Implicit
- This member is added by an implicit conversion from GenerateBridges to Ensuring[GenerateBridges] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def generate(): (List[Global.Tree], Set[Global.Symbol])
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def makeBridgeDefDef(bridge: Global.Symbol, member: Global.Symbol, other: Global.Symbol): Global.DefDef
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
opc: BridgesCursor
- Definition Classes
- EnterBridges
-
val
site: Global.Type
- Definition Classes
- EnterBridges
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- var toBeRemoved: Set[Global.Symbol]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (GenerateBridges, B)
- Implicit
- This member is added by an implicit conversion from GenerateBridges to ArrowAssoc[GenerateBridges] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from GenerateBridges to StringFormat[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 ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
The Scala compiler and reflection APIs.