Class sun.tools.debug.RemoteObject
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.tools.debug.RemoteObject

java.lang.Object
   |
   +----sun.tools.debug.RemoteValue
           |
           +----sun.tools.debug.RemoteObject

public class RemoteObject
extends RemoteValue
The RemoteObject class allows access to an object in a remote Java interpreter. Remote objects are not created by the local debugger, but are returned by the remote debugging agent when queried for the values of instance or static variables of known objects (such as classes), or from local (stack) variables. Each remote object has a reference cached by the remote Java interpreter, so that the object will not be garbage-collected during examination. The RemoteDebugger's gc() operation frees references to objects that are no longer being examined.
See Also:
RemoteDebugger, RemoteClass, RemoteString, RemoteThread, RemoteThreadGroup

Method Index

 o description()
Return a description of the object.
 o getClazz()
Returns the object's class.
 o getField(int)
Return an instance variable, specified by slot number.
 o getField(String)
Return an instance variable, specified by name.
 o getFieldValue(int)
Returns the value of an object's instance variable.
 o getFieldValue(String)
Returns the value of an object's instance variable.
 o getFields()
Return the instance (non-static) fields of an object.
 o getId()
Returns the id of the object.
 o toString()
Return object as a string.
 o typeName()
Returns the RemoteValue's type name ("Object").

Methods

 o typeName
  public String typeName() throws Exception
Returns the RemoteValue's type name ("Object").
Overrides:
typeName in class RemoteValue
 o getId
  public final int getId()
Returns the id of the object.
 o getClazz
  public final RemoteClass getClazz()
Returns the object's class.
 o getFieldValue
  public RemoteValue getFieldValue(int n) throws Exception
Returns the value of an object's instance variable.
Parameters:
n - the slot number of the variable to be returned.
 o getFieldValue
  public RemoteValue getFieldValue(String name) throws Exception
Returns the value of an object's instance variable.
Parameters:
name - the name of the instance variable
Returns:
the variable as a RemoteValue, or null if name not found.
 o getFields
  public RemoteField[] getFields() throws Exception
Return the instance (non-static) fields of an object.
 o getField
  public RemoteField getField(int n) throws Exception
Return an instance variable, specified by slot number.
Parameters:
n - the slot number of the variable to be returned.
 o getField
  public RemoteField getField(String name) throws Exception
Return an instance variable, specified by name.
Parameters:
name - the name of the instance variable
Returns:
the variable as a RemoteField, or null if name not found.
 o description
  public String description()
Return a description of the object.
Overrides:
description in class RemoteValue
 o toString
  public String toString()
Return object as a string.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index