trait
Multimethod[Method[AA, RR] <: MethodImpl[AA, RR], A <: AnyRef, R] extends MMRegistry1[Method[_ <: A, _ <: R]]
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
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[_ <: A, _ <: R]]
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
multipleOptions(a: A, m: Map[Class[_], Method[_ <: A, _ <: R]]): Nothing
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
ops: HashMap[Class[_], Method[_ <: A, _ <: R]]
-
def
register[AA <: A](op: Method[AA, _ <: R])(implicit manA: Manifest[AA]): Unit
-
def
register(a: Class[_], op: Method[_ <: A, _ <: R]): Unit
-
def
resolve(a: Class[_], checkedA: Set[Class[_]] = Set.empty): Map[Class[_], Method[_ <: A, _ <: R]]
-
def
selectBestOption(options: Map[Class[_], Method[_ <: A, _ <: R]]): Map[Class[_], Method[_ <: A, _ <: R]]
-
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
Inherited from AnyRef
Inherited from Any
A Multimethod is basically a glorified registry that uses dynamic reflection (and subtyping) to determine which version of the method to invoke.