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.
-
finalize()
-
-
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.
-
getFields()
- Return the instance (non-static) fields of an object.
-
getFieldValue(int)
- Returns the value of an object's instance variable.
-
getFieldValue(String)
- Returns the value of an object's instance variable.
-
getId()
- Returns the id of the object.
-
setField(int, boolean)
- Set a boolean instance variable, specified by slot.
-
setField(int, char)
- Set a char instance variable, specified by slot.
-
setField(int, double)
- Set a double instance variable, specified by slot.
-
setField(int, float)
- Set a float instance variable, specified by slot.
-
setField(int, int)
- Set an int instance variable, specified by slot.
-
setField(int, long)
- Set a long instance variable, specified by slot.
-
setField(int, RemoteObject)
- Set an object instance variable, specified by slot.
-
setField(String, boolean)
- Set a boolean instance variable, specified by name.
-
setField(String, char)
- Set a char instance variable, specified by name.
-
setField(String, double)
- Set a double instance variable, specified by name.
-
setField(String, float)
- Set a float instance variable, specified by name.
-
setField(String, int)
- Set an int instance variable, specified by name.
-
setField(String, long)
- Set a long instance variable, specified by name.
-
setField(String, RemoteObject)
- Set an object instance variable, specified by name.
-
toString()
- Return object as a string.
-
typeName()
- Returns the RemoteValue's type name ("Object").
typeName
method typeName() returns String public Signals Exception
- Returns the RemoteValue's type name ("Object").
- Throws: Exception
- if a general exception occurs.
- Overrides:
- typeName in class RemoteValue
getId
method getId() returns int public final
- Returns the id of the object.
getClazz
method getClazz() returns RemoteClass public final
- Returns the object's class.
getFieldValue
method getFieldValue(n=int) returns RemoteValue public Signals Exception
- Returns the value of an object's instance variable.
- Parameters:
- n - the slot number of the variable to be returned.
- Throws: Exception
- if a general exception occurs.
getFieldValue
method getFieldValue(name=String) returns RemoteValue public Signals 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.
- Throws: Exception
- if a general exception occurs.
getFields
method getFields() returns RemoteField[] public Signals Exception
- Return the instance (non-static) fields of an object.
- Throws: Exception
- if a general exception occurs.
getField
method getField(n=int) returns RemoteField public Signals Exception
- Return an instance variable, specified by slot number.
- Parameters:
- n - the slot number of the variable to be returned.
- Throws: Exception
- if a general exception occurs.
getField
method getField(name=String) returns RemoteField public Signals 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.
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
value=boolean) public Signals Exception
- Set a boolean instance variable, specified by name. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- name - the name of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
value=int) public Signals Exception
- Set an int instance variable, specified by name. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- name - the name of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
value=char) public Signals Exception
- Set a char instance variable, specified by name. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- name - the name of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
value=long) public Signals Exception
- Set a long instance variable, specified by name. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- name - the name of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
value=float) public Signals Exception
- Set a float instance variable, specified by name. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- name - the name of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
value=double) public Signals Exception
- Set a double instance variable, specified by name. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- name - the name of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(name=String, -
object=RemoteObject) public Signals Exception
- Set an object instance variable, specified by name. This isn't
currently supported, so an IllegalAccessException is always thrown.
(The API is defined so that this feature can be implemented in
future releases.)
- Parameters:
- name - the name of the instance variable
- object - the RemoteObject to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
value=boolean) public Signals Exception
- Set a boolean instance variable, specified by slot. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- slot - the slot number of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
value=int) public Signals Exception
- Set an int instance variable, specified by slot. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- slot - the slot number of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
value=char) public Signals Exception
- Set a char instance variable, specified by slot. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- slot - the slot number of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
value=long) public Signals Exception
- Set a long instance variable, specified by slot. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- slot - the slot number of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
value=float) public Signals Exception
- Set a float instance variable, specified by slot. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- slot - the slot number of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
value=double) public Signals Exception
- Set a double instance variable, specified by slot. If the instance
variable doesn't exist, an IllegalAccessException is thrown.
- Parameters:
- slot - the slot number of the instance variable
- value - the value to use
- Throws: Exception
- if a general exception occurs.
setField
method setField(slot=int, -
object=RemoteObject) public Signals Exception
- Set an object instance variable, specified by slot. This isn't
currently supported, so an IllegalAccessException is always thrown.
(The API is defined so that this feature can be implemented in
future releases.)
- Parameters:
- slot - the slot number of the instance variable
- object - the RemoteObject to use
- Throws: Exception
- if a general exception occurs.
description
method description() returns String public
- Return a description of the object.
- Overrides:
- description in class RemoteValue
toString
method toString() returns String public
- Return object as a string.
- Overrides:
- toString in class Object
finalize
method finalize() Inheritable Signals Exception
- Throws: Exception
- if a general exception occurs.
- Overrides:
- finalize in class Object
All Packages Class Hierarchy This Package Previous Next Index