|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPrimitiveArray
Interface for primitive arrays in the heap dump.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.mat.snapshot.model.IObject |
---|
IObject.Type |
Field Summary | |
---|---|
static Class<?>[] |
COMPONENT_TYPE
Java component type of the primitive array. |
static int[] |
ELEMENT_SIZE
Element sizes inside the array. |
static byte[] |
SIGNATURES
Primitive signatures. |
static String[] |
TYPE
Display string of the type. |
Method Summary | |
---|---|
Class<?> |
getComponentType()
Returns the component type of the array. |
int |
getType()
Returns the IObject.Type of the primitive array. |
Object |
getValueArray()
Get the primitive Java array. |
Object |
getValueArray(int offset,
int length)
Get the primitive Java array, beginning at offset and
length number of elements. |
Object |
getValueAt(int index)
Returns the value of the array at the specified index |
Methods inherited from interface org.eclipse.mat.snapshot.model.IArray |
---|
getLength |
Methods inherited from interface org.eclipse.mat.snapshot.model.IObject |
---|
getClassSpecificName, getClazz, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getOutboundReferences, getRetainedHeapSize, getSnapshot, getTechnicalName, getUsedHeapSize, resolveValue |
Field Detail |
---|
static final byte[] SIGNATURES
IObject.Type
IObject.Type
static final int[] ELEMENT_SIZE
IObject.Type
IObject.Type
static final String[] TYPE
IObject.Type
IObject.Type
static final Class<?>[] COMPONENT_TYPE
IObject.Type
Method Detail |
---|
int getType()
IObject.Type
of the primitive array.
Class<?> getComponentType()
Object getValueAt(int index)
index
- from 0 to length-1
Object getValueArray()
if (char.class == array.getComponentType()) { char[] content = (char[]) array.getValueArray(); System.out.println(content.length); }The return value must not be modified because it is cached by the heap dump adapter. This method does not return a copy of the array for performance reasons.
Object getValueArray(int offset, int length)
offset
and
length
number of elements.
The return value must not be modified because it is cached by the heap dump adapter. This method does not return a copy of the array for performance reasons.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |