@@ -22,7 +22,7 @@ import scala.annotation.tailrec
22
22
* generated per call point, and will uniquely relate to the method called
23
23
* at that point, making the method name and argument types irrelevant. */
24
24
/* TODO: if performance is acceptable, PolyMethodCache should be made generic on the method type */
25
- sealed abstract class MethodCache {
25
+ private [scala] sealed abstract class MethodCache {
26
26
/** Searches for a cached method in the `MethodCache` chain that
27
27
* is compatible with receiver class `forReceiver`. If none is cached,
28
28
* `null` is returned. If `null` is returned, find's caller should look-
@@ -32,7 +32,7 @@ sealed abstract class MethodCache {
32
32
def add (forReceiver : JClass [_], forMethod : JMethod ): MethodCache
33
33
}
34
34
35
- final class EmptyMethodCache extends MethodCache {
35
+ private [scala] final class EmptyMethodCache extends MethodCache {
36
36
37
37
def find (forReceiver : JClass [_]): JMethod = null
38
38
@@ -41,7 +41,7 @@ final class EmptyMethodCache extends MethodCache {
41
41
42
42
}
43
43
44
- final class MegaMethodCache (
44
+ private [scala] final class MegaMethodCache (
45
45
private [this ] val forName : String ,
46
46
private [this ] val forParameterTypes : Array [JClass [_]]
47
47
) extends MethodCache {
@@ -53,7 +53,7 @@ final class MegaMethodCache(
53
53
54
54
}
55
55
56
- final class PolyMethodCache (
56
+ private [scala] final class PolyMethodCache (
57
57
private [this ] val next : MethodCache ,
58
58
private [this ] val receiver : JClass [_],
59
59
private [this ] val method : JMethod ,
0 commit comments