public class ArrayAccess extends Object
Modifier and Type | Field and Description |
---|---|
static ArrayAccess |
SINGLETON |
Modifier | Constructor and Description |
---|---|
protected |
ArrayAccess() |
Modifier and Type | Method and Description |
---|---|
ArrayAllocationSite |
getAllocationSite(Object thisObj) |
Object |
getArray(Object thisObj) |
int |
getArrayOffset(Object thisObj) |
ScriptArray |
getArrayType(Object thisObj) |
int |
getHoleCount(Object thisObj) |
long |
getIndexOffset(Object thisObj) |
long |
getLength(Object thisObj) |
int |
getUsedLength(Object thisObj) |
void |
setArray(Object thisObj,
Object array) |
void |
setArrayOffset(Object thisObj,
int arrayOffset) |
void |
setArrayType(Object thisObj,
ScriptArray arrayType) |
void |
setHoleCount(Object thisObj,
int holeCount) |
void |
setIndexOffset(Object thisObj,
long indexOffset) |
void |
setLength(Object thisObj,
long length) |
void |
setUsedLength(Object thisObj,
int usedLength) |
public static final ArrayAccess SINGLETON
public ScriptArray getArrayType(Object thisObj)
public long getLength(Object thisObj)
public int getUsedLength(Object thisObj)
public long getIndexOffset(Object thisObj)
public int getArrayOffset(Object thisObj)
public void setArrayType(Object thisObj, ScriptArray arrayType)
public void setLength(Object thisObj, long length)
public void setUsedLength(Object thisObj, int usedLength)
public void setIndexOffset(Object thisObj, long indexOffset)
public void setArrayOffset(Object thisObj, int arrayOffset)
public int getHoleCount(Object thisObj)
public void setHoleCount(Object thisObj, int holeCount)
public ArrayAllocationSite getAllocationSite(Object thisObj)