blob: b9a97dde8dcacaa61defb3eecdc6c21e587dc68c [file] [log] [blame]
package org.eclipse.jdt.debug.core;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IVariable;
/**
* A local variable, field slot, or receiver (this) in a Java virtual machine.
* <p>
* Clients are not intended to implement this interface.
* </p>
* @see org.eclipse.debug.core.model.IVariable
*/
public interface IJavaVariable extends IVariable, IJavaModifiers {
/**
* Returns the JNI-style signature for the declared type of this
* variable, or <code>null</code> if the type associated with the
* signature is not yet loaded in the target VM.
*
* @return signature, or <code>null</code> if not accessible
* @exception DebugException if this method fails. Reasons include:
* <ul><li>Failure communicating with the VM. The DebugException's
* status code contains the underlying exception responsible for
* the failure.</li>
* <li>The type associated with the signature is not yet loaded</li></ul>
*/
public String getSignature() throws DebugException;
/**
* Returns the declared type of this variable.
*
* @return the declared type of this variable
* @exception DebugException if this method fails. Reasons include:
* <ul><li>Failure communicating with the VM. The DebugException's
* status code contains the underlying exception responsible for
* the failure.</li>
* <li>The type associated with the signature is not yet loaded</li></ul>
* @since 2.0
*/
public IJavaType getJavaType() throws DebugException;
/**
* Returns whether this variable is local.
*
* @return whether this variable is a local variable
* @exception DebugException if this method fails. Reasons include:
* <ul><li>Failure communicating with the VM. The DebugException's
* status code contains the underlying exception responsible for
* the failure.</li></ul>
* @since 2.1
*/
public boolean isLocal() throws DebugException;
}