/** A JavaScript JSArray */
public class JSArray extends JS {
private static final Object NULL = new Object();
/** A JavaScript JSArray */
public class JSArray extends JS {
private static final Object NULL = new Object();
public final int length() { return size(); }
public final Object elementAt(int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
public final int length() { return size(); }
public final Object elementAt(int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
}
public final void setElementAt(Object o, int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
}
public final void setElementAt(Object o, int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
}
public final void insertElementAt(Object o, int i) {
if(i < 0 || i > size()) throw new ArrayIndexOutOfBoundsException(i);
}
public final void insertElementAt(Object o, int i) {
if(i < 0 || i > size()) throw new ArrayIndexOutOfBoundsException(i);
}
public final Object removeElementAt(int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
}
public final Object removeElementAt(int i) {
if(i < 0 || i >= size()) throw new ArrayIndexOutOfBoundsException(i);
for(int i=size-1,j=0;i>=0;i--,j++) insertElementAt(vec.elementAt(i),j);
return this;
}
for(int i=size-1,j=0;i>=0;i--,j++) insertElementAt(vec.elementAt(i),j);
return this;
}