|
Java Debug Interface | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A local variable in the target VM. Each variable declared within a
Method has its own LocalVariable object. Variables of the same
name declared in different scopes have different LocalVariable objects.
LocalVariables can be used alone to retrieve static information
about their declaration, or can be used in conjunction with a
StackFrame to set and get values.
StackFrame,
Method| Method Summary | |
boolean |
equals(Object obj)
Compares the specified Object with this LocalVariable for equality. |
int |
hashCode()
Returns the hash code value for this LocalVariable. |
boolean |
isArgument()
Determines if this variable is an argument to its method. |
boolean |
isVisible(StackFrame frame)
Determines whether this variable can be accessed from the given StackFrame. |
String |
name()
Gets the name of the local variable. |
String |
signature()
Gets the JNI signature of the local variable. |
Type |
type()
Returns the type of the this LocalVariable. |
String |
typeName()
|
| Methods inherited from interface com.sun.jdi.Mirror |
toString, virtualMachine |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public String name()
public String typeName()
public Type type()
throws ClassNotLoadedException
LocalVariable. For primitive variables,
an appropriate PrimitiveType is always returned. For object
variables, the appropriate ReferenceType is returned if it has
been loaded through the enclosing type's class loader.Type of this local variable.ClassNotLoadedException - if the type has not yet been loaded
through the appropriate class loader.public String signature()
public boolean isVisible(StackFrame frame)
StackFrame.
See StackFrame.visibleVariables() for a complete description
variable visibility in this interface.frame - the StackFrame querying visibilitytrue if this variable is visible;
false otherwise.IllegalArgumentException - if the stack frame's method
does not match this variable's method.VMMismatchException - if a Mirror argument and this mirror
do not belong to the same VirtualMachine.public boolean isArgument()
true if this variable is final;
false otherwise.public boolean equals(Object obj)
equals in class ObjectMethod.equals(java.lang.Object)), and if both LocalVariables mirror
the same declaration within that methodpublic int hashCode()
hashCode in class Object
|
Java Debug Interface | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||