|
||||||||||
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 as a property (ex: the DOM node whose ID or name matches the property name).
Field Summary |
---|
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
NOT_FOUND |
Method Summary | |
---|---|
Object |
getWithFallback(String name)
Fallback called when no configured property is found with the given name on the Scriptable object. |
Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Method Detail |
---|
Object getWithFallback(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 |