Scala Library
|
|
scala/runtime/PolyMethodCache.scala
]
final
class
PolyMethodCache(next : MethodCache, receiver : java.lang.Class[Any], method : java.lang.reflect.Method, complexity : Int)
extends
MethodCacheMethod Summary | |
def
|
add (forReceiver : java.lang.Class[Any], forMethod : java.lang.reflect.Method) : MethodCache |
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 |
def
find(forReceiver : java.lang.Class[Any]) : java.lang.reflect.Method
def
add(forReceiver : java.lang.Class[Any], forMethod : java.lang.reflect.Method) : MethodCache
Scala Library
|
|