org.mozilla.javascript

Class NativeArray

public class NativeArray extends IdScriptableObject

This class implements the Array native object.

Author: Norris Boyd Mike McCabe

Constructor Summary
NativeArray(long length)
NativeArray(Object[] array)
Method Summary
voiddelete(int index)
ObjectexecIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
protected intfindInstanceIdInfo(String s)
protected intfindPrototypeId(String s)
Objectget(int index, Scriptable start)
StringgetClassName()
ObjectgetDefaultValue(Class hint)
Object[]getIds()
protected StringgetInstanceIdName(int id)
protected ObjectgetInstanceIdValue(int id)
longgetLength()
protected intgetMaxInstanceId()
booleanhas(int index, Scriptable start)
protected voidinitPrototypeId(int id)
longjsGet_length()
voidput(String id, Scriptable start, Object value)
voidput(int index, Scriptable start, Object value)
protected voidsetInstanceIdValue(int id, Object value)

Constructor Detail

NativeArray

public NativeArray(long length)

NativeArray

public NativeArray(Object[] array)

Method Detail

delete

public void delete(int index)

execIdCall

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

findInstanceIdInfo

protected int findInstanceIdInfo(String s)

findPrototypeId

protected int findPrototypeId(String s)

get

public Object get(int index, Scriptable start)

getClassName

public String getClassName()

getDefaultValue

public Object getDefaultValue(Class hint)

getIds

public Object[] getIds()

getInstanceIdName

protected String getInstanceIdName(int id)

getInstanceIdValue

protected Object getInstanceIdValue(int id)

getLength

public long getLength()

getMaxInstanceId

protected int getMaxInstanceId()

has

public boolean has(int index, Scriptable start)

initPrototypeId

protected void initPrototypeId(int id)

jsGet_length

public long jsGet_length()

Deprecated: Use {@link #getLength()} instead.

put

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

put

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

setInstanceIdValue

protected void setInstanceIdValue(int id, Object value)