|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptableWithFallbackGetter
Provides a clean way to specify a fallback property getter when the "normal way" failed. Most properties are "cleanly" defined but some host objects like Document or Window are able to return a value that has not been configured has property (ex: the DOM node which id or name match the property name.
Field Summary |
---|
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Method Summary | |
---|---|
java.lang.Object |
getWithFallback(java.lang.String name)
Fallback called when no configured property is found with the given name on the Scriptable object. |
Methods inherited from interface org.mozilla.javascript.Scriptable |
---|
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Method Detail |
---|
java.lang.Object getWithFallback(java.lang.String name)
Scriptable
object.
name
- the name of the requested property
Scriptable.NOT_FOUND
if nothing is found
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |