javax.tools.diagnostics.runtime.java
Interface JavaVariable


public interface JavaVariable

Representation of a Java Variable

This is an experimental addition and may be removed at a later date


Method Summary
 int getLength()
           The number of bytes this variables scope covers over the bytecode.
 java.lang.String getName()
           The name of the variable.
 java.lang.String getSignature()
           The local variable's signature in JNI format.
 int getSlot()
           The local variable slot this variable occupies.
 int getStart()
           The start of the local variable's scope within the bytecode.
 java.lang.Object getValue()
           The value of the variable
 

Method Detail

getName

java.lang.String getName()
                         throws DataUnavailable

The name of the variable.

Throws:
DataUnavailable - if the information is not available

getSignature

java.lang.String getSignature()

The local variable's signature in JNI format.


getStart

int getStart()

The start of the local variable's scope within the bytecode.


getLength

int getLength()

The number of bytes this variables scope covers over the bytecode.


getSlot

int getSlot()

The local variable slot this variable occupies. Passed to JavaStackFrame.getVariable() to retrieve the contents.


getValue

java.lang.Object getValue()

The value of the variable



Copyright © 2010. All Rights Reserved.