FileDocCategorySizeDatePackage
Instance.javaAPI DocAndroid 1.5 API3340Wed May 06 22:41:02 BST 2009com.android.hit

Instance

public abstract class Instance extends Object

Fields Summary
long
mId
long
mClassId
StackTrace
mStack
Heap
mHeap
int
mSize
private ArrayList
mParents
Constructors Summary
Methods Summary
public voidaddParent(com.android.hit.Instance parent)

        if (mParents == null) {
            mParents = new ArrayList<Instance>();
        }
        
        mParents.add(parent);
    
public java.lang.StringdescribeReferenceTo(long id)

        return "No reference to 0x" + Long.toHexString(id); 
    
public final intgetCompositeSize()

        HashSet<Instance> set = new HashSet<Instance>();
        
        visit(set, null);
        
        int size = 0;
        
        for (Instance instance: set) {
            size += instance.getSize();
        }
        
        return size;
    
public java.util.ArrayListgetParents()

        if (mParents == null) {
            mParents = new ArrayList<Instance>();
        }
        
        return mParents;
    
public intgetSize()

        return mSize;
    
public abstract java.lang.StringgetTypeName()

public abstract voidresolveReferences(State state)

public voidsetHeap(Heap heap)

        mHeap = heap;
    
public voidsetSize(int size)

        mSize = size;
    
public abstract voidvisit(java.util.Set resultSet, com.android.hit.Instance$Filter filter)