scala.runtime

class MethodCache

[source: scala/runtime/MethodCache.scala]

sealed abstract class MethodCache
extends AnyRef
Direct Known Subclasses:
EmptyMethodCache, MegaMethodCache, PolyMethodCache

Method Summary
abstract def add (forReceiver : java.lang.Class[Any], forMethod : java.lang.reflect.Method) : MethodCache
abstract def find (forReceiver : java.lang.Class[Any]) : java.lang.reflect.Method
Searches for a cached method in the MethodCache chain that is compatible with receiver class "forReceiver". If none is cached, "null" is returned. If "null is returned", find's caller should look- up the right method using whichever means it prefers, and add it to the cache for later use.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def find(forReceiver : java.lang.Class[Any]) : java.lang.reflect.Method
Searches for a cached method in the MethodCache chain that is compatible with receiver class "forReceiver". If none is cached, "null" is returned. If "null is returned", find's caller should look- up the right method using whichever means it prefers, and add it to the cache for later use.

abstract def add(forReceiver : java.lang.Class[Any], forMethod : java.lang.reflect.Method) : MethodCache