com.gargoylesoftware.htmlunit.javascript
Class SimpleScriptableProxy<T extends SimpleScriptable>
java.lang.Object
net.sourceforge.htmlunit.corejs.javascript.Delegator
com.gargoylesoftware.htmlunit.javascript.SimpleScriptableProxy<T>
- Type Parameters:
T
- the type of scriptable object being wrapped
- All Implemented Interfaces:
- ScriptableWithFallbackGetter, Serializable, net.sourceforge.htmlunit.corejs.javascript.Callable, net.sourceforge.htmlunit.corejs.javascript.Function, net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Direct Known Subclasses:
- DocumentProxy, WindowProxy
public abstract class SimpleScriptableProxy<T extends SimpleScriptable>
- extends net.sourceforge.htmlunit.corejs.javascript.Delegator
- implements ScriptableWithFallbackGetter, Serializable
Proxy for a SimpleScriptable
.
- Version:
- $Revision: 6701 $
- Author:
- Marc Guillemot, Daniel Gredler
- See Also:
- Serialized Form
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.Delegator |
obj |
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
NOT_FOUND |
Method Summary |
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
|
Object |
get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
|
abstract T |
getDelegee()
|
Object |
getWithFallback(String name)
Fallback called when no configured property is found with the given name
on the Scriptable object. |
boolean |
has(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
|
boolean |
has(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
|
boolean |
hasInstance(net.sourceforge.htmlunit.corejs.javascript.Scriptable instance)
|
void |
put(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value)
|
void |
put(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value)
|
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.Delegator |
call, construct, delete, delete, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, newInstance, setDelegee, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
delete, delete, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, setParentScope, setPrototype |
SimpleScriptableProxy
public SimpleScriptableProxy()
getDelegee
public abstract T getDelegee()
-
- Overrides:
getDelegee
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
get
public Object get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
-
- Specified by:
get
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
get
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
get
public Object get(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
-
- Specified by:
get
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
get
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
getWithFallback
public Object getWithFallback(String name)
- Fallback called when no configured property is found with the given name
on the
Scriptable
object.
- Specified by:
getWithFallback
in interface ScriptableWithFallbackGetter
- Parameters:
name
- the name of the requested property
- Returns:
- the object value,
Scriptable.NOT_FOUND
if nothing is found
has
public boolean has(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
-
- Specified by:
has
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
has
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
has
public boolean has(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
-
- Specified by:
has
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
has
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
hasInstance
public boolean hasInstance(net.sourceforge.htmlunit.corejs.javascript.Scriptable instance)
-
- Specified by:
hasInstance
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
hasInstance
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
put
public void put(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value)
-
- Specified by:
put
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
put
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
put
public void put(String name,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object value)
-
- Specified by:
put
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
- Overrides:
put
in class net.sourceforge.htmlunit.corejs.javascript.Delegator
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.