Dispatchable

This Trait specifies a general interface for reflectively invoking methods.

class Object
trait Matchable
class Any
class IPlayer[W, T]
class Player[W]
class MultiPlayer[W]

Value members

Abstract methods

def dispatch[E](on: AnyRef, m: Method, args: Seq[Any]): Either[InvocationError, E]

For reflective dispatch.

For reflective dispatch.

Type Params
E

the return type of method m

Value Params
args

the arguments to pass to method m

m

the method to dispatch

on

the instance to dispatch the given method m on

Returns

the resulting return value of the method invocation or an appropriate error