sendTypeMsgWithIOParams

sendTypeMsgWithIOParams(message: String; 
                        paramList: ParamListType io): Any;

The sendTypeMsgWithIOParams method of the Type class sends the specified message (type method) to the receiver type instance. This allows type methods to be called on their defined type without requiring an instance of the type, which differs from the Object class sendTypeMsgWithIOParams method that sends the specified message (type method) to the receiver, requiring a valid instance.

The message parameter must be the name of a valid type method, which is executed when the sendTypeMsgWithIOParams method is called.

Use the paramList parameter to pass one or more parameters to the method being called.

If the number or type of the actual parameters passed to a method or condition by a parameter list does not correspond exactly to the formal parameter list declaration, an exception or an unpredictable result can occur, as the compiler is unable to perform any type checking on the values that are passed to a parameter list.

For details about the ParamListType pseudo type, see "ParamListType" under "Pseudo Types", in Chapter 1 of the JADE Developer’s Reference. See also "Passing Variable Parameters to Methods" under "JADE Language Syntax", in Chapter 1 of the JADE Developer’s Reference.

The sendTypeMsgWithParams method can be used if the type method represented by the message parameter takes no io or output parameters.

The return type of this method allows for an optional return value from the method being called. If the called method returns a value, the Any primitive type result must be cast to the appropriate type, to access that result.

See also the Type class sendTypeMsg and sendTypeMsgWithParams methods.

2020.0.01 and higher