2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package sun.tools.javap;
7 /** A JavaScript ready replacement for java.util.Vector
9 * @author Jaroslav Tulach <jtulach@netbeans.org>
21 void add(Object objectType) {
22 addElement(objectType);
24 void addElement(Object obj) {
26 setElementAt(obj, size());
30 return arr == null ? 0 : arr.length;
33 void copyInto(Object[] accflags) {
34 throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
37 Object elementAt(int index) {
41 void setSize(int len) {
43 arr = new Object[len];
45 Object[] newArr = new Object[len];
46 int min = Math.min(len, arr.length);
47 for (int i = 0; i < min; i++) {
54 void setElementAt(Object val, int index) {