Dispatchable

scroll.internal.dispatch.Dispatchable
trait Dispatchable

This Trait specifies a general interface for reflectively invoking methods.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AbstractCompartment.this.IPlayer[W, T]
class Compartment.this.Player[W]

Members list

Value members

Abstract methods

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

For reflective dispatch.

For reflective dispatch.

Type parameters

E

the return type of method m

Value parameters

args

the arguments to pass to method m

m

the method to dispatch

on

the instance to dispatch the given method m on

Attributes

Returns

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