Class sun.tools.debug.RemoteArray
All Packages Class Hierarchy This Package Previous Next Index
Class sun.tools.debug.RemoteArray
java.lang.Object
|
+----sun.tools.debug.RemoteValue
|
+----sun.tools.debug.RemoteObject
|
+----sun.tools.debug.RemoteArray
- public class RemoteArray
- extends RemoteObject
The RemoteArray class allows remote debugging of arrays.
- See Also:
- RemoteValue, RemoteDebugger
-
arrayTypeName(int)
- Return the element type as a string.
-
description()
- Return a description of the array.
-
getElement(int)
- Return an array element.
-
getElementType()
- Return the element type as a "TC_" constant, such as "TC_CHAR".
-
getElements()
- Returns a copy of the array as instances of RemoteValue.
-
getElements(int, int)
- Returns a copy of a portion of the array as instances of RemoteValue.
-
getSize()
- Return the number of elements in the array.
-
toString()
- Return a string version of the array.
-
typeName()
- Return this RemoteValue's type ("array").
getSize
public final int getSize()
- Return the number of elements in the array.
typeName
public String typeName()
- Return this RemoteValue's type ("array").
- Overrides:
- typeName in class RemoteObject
arrayTypeName
public String arrayTypeName(int type)
- Return the element type as a string.
getElementType
public final int getElementType() throws Exception
- Return the element type as a "TC_" constant, such as "TC_CHAR".
getElement
public final RemoteValue getElement(int index) throws Exception
- Return an array element.
- Parameters:
- index - the index of the element
- Returns:
- the element as a RemoteValue
- Throws: ArrayIndexOutOfBoundsException
- when the index is greater than the size of the array
getElements
public final RemoteValue[] getElements() throws Exception
- Returns a copy of the array as instances of RemoteValue.
getElements
public final RemoteValue[] getElements(int beginIndex,
int endIndex) throws Exception
- Returns a copy of a portion of the array as instances of RemoteValue.
- Parameters:
- beginIndex - the beginning array index
- endIndex - the final array index
- Throws: ArrayIndexOutOfBoundsException
- when the index is greater than the size of the array
description
public String description()
- Return a description of the array.
- Overrides:
- description in class RemoteObject
toString
public String toString()
- Return a string version of the array.
- Overrides:
- toString in class RemoteObject
All Packages Class Hierarchy This Package Previous Next Index