org.jikesrvm.classloader
Class MethodVector

java.lang.Object
  extended by org.jikesrvm.classloader.MethodVector

final class MethodVector
extends Object

Lightweight implementation of a vector of Fields.


Field Summary
private  RVMMethod[] array
           
private  int cnt
           
private static RVMMethod[] empty
           
private static WeakHashMap<MethodVector,RVMMethod[]> popularMVs
           
 
Constructor Summary
MethodVector()
           
 
Method Summary
(package private)  void addElement(RVMMethod item)
           
 void addUniqueElement(RVMMethod item)
           
private  void adjustLength(int newLength)
           
(package private)  RVMMethod elementAt(int index)
           
 boolean equals(Object obj)
           
 RVMMethod[] finish()
           
 int hashCode()
           
(package private)  void setElementAt(RVMMethod item, int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

private RVMMethod[] array

cnt

private int cnt

empty

private static final RVMMethod[] empty

popularMVs

private static final WeakHashMap<MethodVector,RVMMethod[]> popularMVs
Constructor Detail

MethodVector

public MethodVector()
Method Detail

addElement

void addElement(RVMMethod item)

addUniqueElement

public void addUniqueElement(RVMMethod item)

elementAt

RVMMethod elementAt(int index)

setElementAt

void setElementAt(RVMMethod item,
                  int index)

size

public int size()

finish

public RVMMethod[] finish()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

adjustLength

private void adjustLength(int newLength)