Packages  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

Method Index

 o arrayTypeName(int)
Return the element type as a string.
 o description()
Return a description of the array.
 o getElement(int)
Return an array element.
 o getElements()
Returns a copy of the array as instances of RemoteValue.
 o getElements(int, int)
Returns a copy of a portion of the array as instances of RemoteValue.
 o getElementType()
Return the element type as a "TC_" constant, such as "TC_CHAR".
 o getSize()
Return the number of elements in the array.
 o toString()
Return a string version of the array.
 o typeName()
Return this RemoteValue's type ("array").

Methods

 o getSize
  public final int getSize()
Return the number of elements in the array.
 o typeName
  public String typeName()
Return this RemoteValue's type ("array").
Overrides:
typeName in class RemoteObject
 o arrayTypeName
  public String arrayTypeName(int type)
Return the element type as a string.
 o getElementType
  public final int getElementType() throws Exception
Return the element type as a "TC_" constant, such as "TC_CHAR".
 o 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
 o getElements
  public final RemoteValue[] getElements() throws Exception
Returns a copy of the array as instances of RemoteValue.
 o 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
 o description
  public String description()
Return a description of the array.
Overrides:
description in class RemoteObject
 o toString
  public String toString()
Return a string version of the array.
Overrides:
toString in class RemoteObject

Packages  This Package  Previous  Next  Index