org.mozilla.javascript

Class NativeWith

public class NativeWith extends Object implements Scriptable, IdFunctionCall, Serializable

This class implements the object lookup required for the with statement. It simply delegates every action to its prototype except for operations on its parent.
Field Summary
protected Scriptableparent
protected Scriptableprototype
Constructor Summary
protected NativeWith(Scriptable parent, Scriptable prototype)
Method Summary
voiddelete(String id)
voiddelete(int index)
ObjectexecIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
Objectget(String id, Scriptable start)
Objectget(int index, Scriptable start)
StringgetClassName()
ObjectgetDefaultValue(Class typeHint)
Object[]getIds()
ScriptablegetParentScope()
ScriptablegetPrototype()
booleanhas(String id, Scriptable start)
booleanhas(int index, Scriptable start)
booleanhasInstance(Scriptable value)
voidput(String id, Scriptable start, Object value)
voidput(int index, Scriptable start, Object value)
voidsetParentScope(Scriptable parent)
voidsetPrototype(Scriptable prototype)
protected ObjectupdateDotQuery(boolean value)
Must return null to continue looping or the final collection result.

Field Detail

parent

protected Scriptable parent

prototype

protected Scriptable prototype

Constructor Detail

NativeWith

protected NativeWith(Scriptable parent, Scriptable prototype)

Method Detail

delete

public void delete(String id)

delete

public void delete(int index)

execIdCall

public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)

get

public Object get(String id, Scriptable start)

get

public Object get(int index, Scriptable start)

getClassName

public String getClassName()

getDefaultValue

public Object getDefaultValue(Class typeHint)

getIds

public Object[] getIds()

getParentScope

public Scriptable getParentScope()

getPrototype

public Scriptable getPrototype()

has

public boolean has(String id, Scriptable start)

has

public boolean has(int index, Scriptable start)

hasInstance

public boolean hasInstance(Scriptable value)

put

public void put(String id, Scriptable start, Object value)

put

public void put(int index, Scriptable start, Object value)

setParentScope

public void setParentScope(Scriptable parent)

setPrototype

public void setPrototype(Scriptable prototype)

updateDotQuery

protected Object updateDotQuery(boolean value)
Must return null to continue looping or the final collection result.