seEnableDynamicMethod
syntax: |
RestoreDynamicMethodState SEContext.seEnableDynamicMethod( SEObject obj, SEMemberDesc mem, int whichCallback, boolean enable, RestoreDynamicMethodState restore_state); |
where: |
obj the object half of the Object,Member pair
mem the member half of the Object,Member pair
whichCallback which method to enable/disable, this may be any of:
SE.GET_CALLBACK SE.PUT_CALLBACK SE.HASPROP_CALLBACK SE.CANPUT_CALLBACK SE.DELETEPROP_CALLBACK SE.DEFAULTVALUE_CALLBACK SE.OPERATOROVERLOAD_CALLBACK SE.GETBYINDEX_CALLBACK SE.GETNAMEBYINDEX_CALLBACK SE.GETMAXINDEX_CALLBACK SE.ALL_CALLBACK /* all of the above */
enable whether to enable dynamic method
restore_sate null for first call in pair, for second call set to value returned by the first call
|
return: |
In first call in pair, this returns the value to be passed as retore_state for second call. For second call in pair the return value has no meaning.
|
description: |
Enable (if enable is true) the calling of the dynamic method named methodName, else disable calling of that dynamic method. These methods are disabled during a callback of that method (i.e. put is disabled while within put to prevent recursion). This is a risky function and not a default part of the API. To enable this API function compile with JSE_ENABLE_DYNAMETH.
This function is always used in a pair. For the first call in the pair restore_state should be null. For the second call, which will undo the first, restore_state must be the value returned by the first call of the pair.
|
see: |
|