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. MethodCache
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MethodCache()

Abstract Value Members

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

  2. abstract def find(forReceiver: 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.