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
-
description()
- Return a description of the object.
-
getClazz()
- Returns the object's class.
-
getField(int)
- Return an instance variable, specified by slot number.
-
getField(String)
- Return an instance variable, specified by name.
-
getFieldValue(int)
- Returns the value of an object's instance variable.
-
getFieldValue(String)
- Returns the value of an object's instance variable.
-
getFields()
- Return the instance (non-static) fields of an object.
-
getId()
- Returns the id of the object.
-
toString()
- Return object as a string.
-
typeName()
- Returns the RemoteValue's type name ("Object").
typeName
public String typeName() throws Exception
- Returns the RemoteValue's type name ("Object").
- Overrides:
- typeName in class RemoteValue
getId
public final int getId()
- Returns the id of the object.
getClazz
public final RemoteClass getClazz()
- Returns the object's class.
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.
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.
getFields
public RemoteField[] getFields() throws Exception
- Return the instance (non-static) fields of an object.
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.
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.
description
public String description()
- Return a description of the object.
- Overrides:
- description in class RemoteValue
toString
public String toString()
- Return object as a string.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index