trait
Multimethod[Method, A <: AnyRef, R] extends MMRegistry1[Method]
Abstract Value Members
-
abstract
def
doMethod(m: Method, a: A): R
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
apply(a: A): R
-
final
def
asInstanceOf[T0]: T0
-
def
bindingMissing(a: A): R
-
val
cache: ConcurrentHashMap[Class[_], Method]
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
multipleOptions(a: A, m: Map[Class[_], Method]): Nothing
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
ops: HashMap[Class[_], Method]
-
def
register[AA <: A](op: Method)(implicit manA: Manifest[AA]): Unit
-
def
register(a: Class[_], op: Method): Unit
-
def
resolve(a: Class[_], checkedA: Set[Class[_]] = Set.empty): Map[Class[_], Method]
-
def
selectBestOption(options: Map[Class[_], Method]): Map[Class[_], Method]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
A Multimethod is basically a glorified registry that uses dynamic reflection (and subtyping) to determine which version of the method to invoke.