All Packages Class Hierarchy This Package Previous Next Index
Class sun.tools.debug.RemoteField
java.lang.Object
|
+----sun.tools.debug.Field
|
+----sun.tools.debug.RemoteField
- public class RemoteField
- extends Field
- implements AgentConstants
A RemoteField allows access to a variable or method of an object
or class in a remote Java interpreter.
- See Also:
- RemoteStackVariable
-
getModifiers()
- Returns a string with the field's modifiers, such as "public",
"static", "final", etc.
-
getName()
- Returns the name of the field.
-
getType()
- Returns a Type object for the field.
-
getTypedName()
- Returns a string describing the field with its full type.
-
isStatic()
- Returns whether the field is static (a class variable or method).
-
setValue(int, boolean)
-
-
setValue(int, char)
-
-
setValue(int, double)
-
-
setValue(int, float)
-
-
setValue(int, int)
-
-
setValue(int, long)
-
-
toString()
- Returns a string representation of the object.
getName
public String getName()
- Returns the name of the field.
setValue
public void setValue(int id,
int value) throws IllegalAccessException, Exception
setValue
public void setValue(int id,
boolean value) throws IllegalAccessException, Exception
setValue
public void setValue(int id,
char value) throws IllegalAccessException, Exception
setValue
public void setValue(int id,
long value) throws IllegalAccessException, Exception
setValue
public void setValue(int id,
float value) throws IllegalAccessException, Exception
setValue
public void setValue(int id,
double value) throws IllegalAccessException, Exception
getType
public Type getType()
- Returns a Type object for the field.
getTypedName
public String getTypedName()
- Returns a string describing the field with its full type.
This string is similar to the one defining the field or
its source code, such as "int enumerate(Thread[])" or
"char name[]".
getModifiers
public String getModifiers()
- Returns a string with the field's modifiers, such as "public",
"static", "final", etc. If the field has no modifiers, an empty
String is returned.
isStatic
public boolean isStatic()
- Returns whether the field is static (a class variable or method).
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index