scala.runtime

MethodCache

sealed abstract class MethodCache extends AnyRef

Source
MethodCache.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. MethodCache
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MethodCache()

Abstract Value Members

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

  2. abstract def find(forReceiver: java.lang.Class[_]): Method

    Searches for a cached method in the MethodCache chain that is compatible with receiver class "forReceiver".

    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.