use of com.scratchdisk.script.ChangeReceiver in project scriptographer by scriptographer.
the class ExtendedJavaObject method get.
public Object get(String name, Scriptable start) {
// defined in the underlying Java object
if (properties != null && properties.containsKey(name))
return properties.get(name);
if (changeReceiver != null)
fetchChangeReceiver();
Scriptable prototype = getPrototype();
Object result = prototype.get(name, this);
if (result != Scriptable.NOT_FOUND)
return result;
result = members.get(this, name, javaObject, false);
if (result != Scriptable.NOT_FOUND) {
if (javaObject instanceof ChangeReceiver)
handleChangeEmitter(result, name);
return result;
}
if (name.equals("prototype"))
return prototype;
return Scriptable.NOT_FOUND;
}
Aggregations