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. |
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
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 policyfrom
- starting indexlen
- 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.