com.jrockit.memleak
Interface IArrayInfo

All Superinterfaces:
IObjectInfo, IObjectSpecifier
All Known Implementing Classes:
ArrayInfo

public interface IArrayInfo
extends IObjectInfo

Information about an array instance, including it's length.

Author:
mpersson

Field Summary
static char PREFIX_CHAR
          The character '[', used as a prefix to designate an array in JVM types.
static java.lang.String PREFIX_STRING
          The String "[", used as a prefix to designate an array in JVM types.
 
Fields inherited from interface com.jrockit.memleak.IObjectInfo
EMPTY_ARRAY
 
Method Summary
 IValue[] getElements(Policy policy, int from, int len)
          Get the element data from an array.
 int getLength()
           
 
Methods inherited from interface com.jrockit.memleak.IObjectInfo
getClassInfo, getField, getFieldReference, getFieldValue, getFieldValues, getKeepAliveSize, isDiscarded
 
Methods inherited from interface com.jrockit.memleak.IObjectSpecifier
getObjectId
 

Field Detail

PREFIX_CHAR

static final char PREFIX_CHAR
The character '[', used as a prefix to designate an array in JVM types.

See Also:
Constant Field Values

PREFIX_STRING

static final java.lang.String PREFIX_STRING
The String "[", used as a prefix to designate an array in JVM types.

See Also:
Constant Field Values
Method Detail

getLength

int getLength()
Returns:
the array length, or -1 if not known.

getElements

IValue[] getElements(Policy policy,
                     int from,
                     int len)
                     throws GarbageCollectedException,
                            java.lang.IndexOutOfBoundsException
Get the element data from an array.

Parameters:
policy - the cache policy
from - starting index
len - how many elements to fetch
Returns:
the values
Throws:
java.lang.IndexOutOfBoundsException - if from and/or len are invalid values
GarbageCollectedException


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.