public List<FieldValue> getFieldValues() { long offset = fileOffset + getInstanceFieldValuesOffset(); List<Field> fields = dumpClass.getAllInstanceFields(); List<FieldValue> values = new ArrayList<FieldValue>(fields.size()); Iterator<Field> fit = fields.iterator(); while (fit.hasNext()) { HprofField field = (HprofField) fit.next(); if (field.getValueType() == HprofHeap.OBJECT) { values.add(new HprofInstanceObjectValue(this, field, offset)); } else { values.add(new HprofInstanceValue(this, field, offset)); } offset += field.getValueSize(); } return values; }
public String getValue() { return getTypeValue().toString(); }
public Object get(int index) { return HprofInstanceValue.getTypeValue(dumpBuffer, offset + ((long)index * (long)elSize), type).toString(); }
public List<FieldValue> getFieldValues() { long offset = fileOffset + getInstanceFieldValuesOffset(); List<Field> fields = dumpClass.getAllInstanceFields(); List<FieldValue> values = new ArrayList<FieldValue>(fields.size()); Iterator<Field> fit = fields.iterator(); while (fit.hasNext()) { HprofField field = (HprofField) fit.next(); if (field.getValueType() == HprofHeap.OBJECT) { values.add(new HprofInstanceObjectValue(this, field, offset)); } else { values.add(new HprofInstanceValue(this, field, offset)); } offset += field.getValueSize(); } return values; }
Object getTypeValue() { byte type = field.getValueType(); HprofByteBuffer dumpBuffer = instance.dumpClass.getHprofBuffer(); return getTypeValue(dumpBuffer, fileOffset, type); }
public List getFieldValues() { long offset = fileOffset + getInstanceFieldValuesOffset(); List fields = dumpClass.getAllInstanceFields(); List values = new ArrayList(fields.size()); Iterator fit = fields.iterator(); while (fit.hasNext()) { HprofField field = (HprofField) fit.next(); if (field.getValueType() == HprofHeap.OBJECT) { values.add(new HprofInstanceObjectValue(this, field, offset)); } else { values.add(new HprofInstanceValue(this, field, offset)); } offset += field.getValueSize(); } return values; }
Object getTypeValue() { HprofByteBuffer dumpBuffer = classDump.getHprofBuffer(); long position = fileOffset + classDump.classDumpSegment.fieldTypeOffset; byte type = dumpBuffer.get(position); return HprofInstanceValue.getTypeValue(dumpBuffer, position + 1, type); } }
public Object getValueOfField(String name) { Iterator<FieldValue> fIt = getFieldValues().iterator(); FieldValue matchingFieldValue = null; while (fIt.hasNext()) { FieldValue fieldValue = (FieldValue) fIt.next(); if (fieldValue.getField().getName().equals(name)) { matchingFieldValue = fieldValue; } } if (matchingFieldValue == null) { return null; } if (matchingFieldValue instanceof HprofInstanceObjectValue) { return ((HprofInstanceObjectValue) matchingFieldValue).getInstance(); } else { return ((HprofInstanceValue) matchingFieldValue).getTypeValue(); } }
public String getValue() { return getTypeValue().toString(); }
public Object get(int index) { return HprofInstanceValue.getTypeValue(dumpBuffer, offset + ((long)index * (long)elSize), type).toString(); }
public Object get(int index) { return HprofInstanceValue.getTypeValue(dumpBuffer, offset + ((long)index * (long)elSize), type).toString(); }
public String getValue() { return getTypeValue().toString(); }
Object getTypeValue() { HprofByteBuffer dumpBuffer = classDump.getHprofBuffer(); long position = fileOffset + classDump.classDumpSegment.fieldTypeOffset; byte type = dumpBuffer.get(position); return HprofInstanceValue.getTypeValue(dumpBuffer, position + 1, type); } }
Object getTypeValue() { byte type = field.getValueType(); HprofByteBuffer dumpBuffer = instance.dumpClass.getHprofBuffer(); return getTypeValue(dumpBuffer, fileOffset, type); }
Object getTypeValue() { HprofByteBuffer dumpBuffer = classDump.getHprofBuffer(); long position = fileOffset + classDump.classDumpSegment.fieldTypeOffset; byte type = dumpBuffer.get(position); return HprofInstanceValue.getTypeValue(dumpBuffer, position + 1, type); } }
Object getTypeValue() { byte type = field.getValueType(); HprofByteBuffer dumpBuffer = instance.dumpClass.getHprofBuffer(); return getTypeValue(dumpBuffer, fileOffset, type); }
public Object getValueOfField(String name) { Iterator fIt = getFieldValues().iterator(); FieldValue matchingFieldValue = null; while (fIt.hasNext()) { FieldValue fieldValue = (FieldValue) fIt.next(); if (fieldValue.getField().getName().equals(name)) { matchingFieldValue = fieldValue; } } if (matchingFieldValue == null) { return null; } if (matchingFieldValue instanceof HprofInstanceObjectValue) { return ((HprofInstanceObjectValue) matchingFieldValue).getInstance(); } else { return ((HprofInstanceValue) matchingFieldValue).getTypeValue(); } }
public Object getValueOfField(String name) { Iterator<FieldValue> fIt = getFieldValues().iterator(); FieldValue matchingFieldValue = null; while (fIt.hasNext()) { FieldValue fieldValue = (FieldValue) fIt.next(); if (fieldValue.getField().getName().equals(name)) { matchingFieldValue = fieldValue; } } if (matchingFieldValue == null) { return null; } if (matchingFieldValue instanceof HprofInstanceObjectValue) { return ((HprofInstanceObjectValue) matchingFieldValue).getInstance(); } else { return ((HprofInstanceValue) matchingFieldValue).getTypeValue(); } }