Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cgsuite.plugin
Interface MethodInvoker  view MethodInvoker download MethodInvoker.java


public interface MethodInvoker

An invocation scheme for a Combinatorial Game Suite method. Instances of this interface establish links between methods exposed to the CGSuite user interface and underlying Java methods. When the user calls a method from inside the interface, Combinatorial Game Suite calls the invoke 55 method of the associated MethodInvoker. For details, refer to the MethodInfo class documentation.

Version:
$Revision: 1.8 $ $Date: 2003/12/12 20:38:57 $

Method Summary
 java.lang.Object invoke(java.lang.String name, java.lang.Object[] arguments, java.util.Map optionalArguments)
          Invokes this method.
 

Method Detail

invoke

public java.lang.Object invoke(java.lang.String name,
                               java.lang.Object[] arguments,
                               java.util.Map optionalArguments)
                        throws MethodInvocationException
Invokes this method. arguments contains the method arguments, whose types must match the argument types specified by the associated MethodInfo. optionalArguments contains any optional arguments specified by the user. It maps the name 55 of each optional argument to the value given by the user, which must be of the type specified by the associated MethodInfo.OptionalArgumentInfo. If the user does not include a given optional argument, then its defaultValue 55 will be used, if one exists; otherwise it will be omitted from the mapping. (In particular, if the user does not specify any option arguments, and no optional arguments have defaults, then this map will be empty.)