contents   index   previous   next

interface: SEHasPropCallback


   public int hasProp(SEContext se,int prop);


This callback is used when searching for a variable. ScriptEase maintains an internal list of objects to search when resolving a variable reference. This list is called the scope chain, and is described fully in the Execution chapter. This list usually consists of the Activation Object, where local variables are stored, followed by the Global Object. It is easy to add objects to the list by using the with statement. If your object is on this list, this callback will be used to determine if your object contains any property being searched for.


The return value can one of the following:




The object has the property.




The object does not have the property.




Disregard this callback and check in the normal way. The normal way involves calling your dynamic get callback if you have one.




Disregard this callback and check for the property in the object's internal storage only, do not call the get callback.


interface: SECanPutCallback