public long getAllInstancesSize() { if (isArray()) { return ((Long) classDumpSegment.arrayMap.get(this)).longValue(); } return ((long)getInstancesCount()) * getInstanceSize(); }
boolean canContainItself() { if (getInstancesCount()>=2 && !CANNOT_CONTAIN_ITSELF.contains(getName())) { Iterator<Field> fieldsIt = getAllInstanceFields().iterator(); while(fieldsIt.hasNext()) { Field f = (Field) fieldsIt.next(); if (f.getType().getName().equals("object")) { // NOI18N return true; } } } if (DEBUG) { if (instances>10) System.out.println(getName()+" cannot contain itself "+instances); // NOI18N } return false; }
public List<Instance> getInstances() { int instancesCount = getInstancesCount();
instanceEntry.setIndex(classDump.getInstancesCount()); classDumpBounds.addInstanceSize(classDump, tag, start);
public long getAllInstancesSize() { if (isArray()) { return ((Long) classDumpSegment.arrayMap.get(this)).longValue(); } return ((long)getInstancesCount()) * getInstanceSize(); }
public long getAllInstancesSize() { if (isArray()) { return ((Long) classDumpSegment.arrayMap.get(this)).longValue(); } return ((long)getInstancesCount()) * getInstanceSize(); }
boolean canContainItself() { if (getInstancesCount()>=2 && !CANNOT_CONTAIN_ITSELF.contains(getName())) { Iterator fieldsIt = getAllInstanceFields().iterator(); while(fieldsIt.hasNext()) { Field f = (Field) fieldsIt.next(); if (f.getType().getName().equals("object")) { // NOI18N return true; } } } if (DEBUG) { if (instances>10) System.out.println(getName()+" cannot contain itself "+instances); // NOI18N } return false; }
boolean canContainItself() { if (getInstancesCount()>=2 && !CANNOT_CONTAIN_ITSELF.contains(getName())) { Iterator<Field> fieldsIt = getAllInstanceFields().iterator(); while(fieldsIt.hasNext()) { Field f = (Field) fieldsIt.next(); if (f.getType().getName().equals("object")) { // NOI18N return true; } } } if (DEBUG) { if (instances>10) System.out.println(getName()+" cannot contain itself "+instances); // NOI18N } return false; }
public List<Instance> getInstances() { int instancesCount = getInstancesCount();
public List /*<Instance>*/ getInstances() { int instancesCount = getInstancesCount();
instanceEntry.setIndex(classDump.getInstancesCount()); classDumpBounds.addInstanceSize(classDump, tag, start);
instanceEntry.setIndex(classDump.getInstancesCount()); classDumpBounds.addInstanceSize(classDump, tag, start);