Objects Next: The RsiObject ClassUp: The SugarCubes Tool Box Previous: Runs

Objects

Reactive script objects are implemented by the classRsiObject . A Java object can be associated to a reactive script object and association is by name: both objects are referenced by the same name in the reactive interpretor. Inside aRsiObject , the keyword this references the Java object associated with. For example, the external statement ``{this.meth(...)}'' appearing in an object x calls the method meth of the associated Java object x.

Call redirections to Java objects is implemented by theSelector  interface:

 
public interface Selector
{
  public String select(String methodName, Vector args);
  public Selector getObjectInSelectorContext(String name);
}

A full description of the External class to handle Java callsis in section 6.