ParamListType

The ParamListType pseudo type maps to a variable list of parameters of any type, and is in effect a generalization of the KeyType pseudo type. A method on any class can have a single ParamListType formal parameter, which must be the first or last formal parameter in the method signature.

When a method with a variable parameter list is called from a JADE method, the compiler allows a variable number of actual parameters of any type to be passed. For example, the following is the signature of the Object::sendMsgWithParams method.

sendMsgWithParams(msg:      String;
                  paramList: ParamListType): Any is objSendMsgWithParams
                                           in jomsupp;

The ParamListType pseudo type can be used only as a formal parameter in a method signature. You cannot define a local variable with a type of ParamListType.

A compiler syntax error is raised when an attempt is made to pass parameters to a method that takes none, including a ParamListType parameter that may be empty.

For details about passing variable parameters to methods, see "Passing Variable Parameters to Methods", later in this chapter. For details about retrieving the value of a parameter in the parameter list at the specified position or returning the number of entries in a parameter list, see the Application class getParamListTypeEntry or getParamListTypeLength method, respectively, in Volume 1 of the JADE Encyclopaedia of Classes.