contents   index   previous   next



sePutWrapper

 

syntax:

   boolean

SEContext.sePutWrapper(

   SEObject obj,

   SEMemberDesc mem,

   SEFunctionDescription desc,

   Object data);

where:

obj the object half of the Object,Member pair

 

mem the member half of the Object,Member pair

 

desc the SEFunctionDescription describing the wrapper function

 

data data associated with the function.

 

 

 

name the name of the function for error reporting wrapper_func - the function

 

minArgs the minimum arguments to the function

 

maxArgs the maximum arguments to the function

 

funcFlags the function flags

 

varFlags the variable-type flags

 

return:

A boolean, true if the put was successful.

 

description:

This call turns a variable into a wrapper function. See Chapter VII for complete details about wrapper functions.

 

The third parameter is an SEFunctionDescription object which describes the wrapper function. An SEFunctionDescription object can be created with the following constructor:

 

public SEFunctionDescription(

   String name,                                                 

   SEWrapper/String func,                                               

   int minArgs,                                              

   int maxArgs,                                                

   byte funcFlags,                                                  

   short varFlags);

 

 

This parameters to this constructor correspond to the parameters to the SE.FUNCTION() library table entry. Since you specify the exact Object,Member location to put the new wrapper function in, the name parameter does not indicate where to put the function. It is used if an error message occurs related to the function.

 

see:

None

 


seSetCallbacks