# com.bea.ide.debug
IDebugStackFrame Interface

public interface IDebugStackFrame

This is the interface for a stack frame. The Stack and Thread views will show frames implementing this interface.

## Method Summary

`public `String`` | `getClassName`() Gets the name of the class for this IDebugStackFrame, as reported by the proxy
`public `URI`` | `getFileURI`() Gets a URI to the source code's file on the local machine.
`public int` | `getLineNumber`() Gets the line number of the execution point for this IDebugStackFrame, as reported by the proxy
`public `String`` | `getMethodName`() Gets the name of the method for this IDebugStackFrame, as reported by the proxy
`public int` | `getNumber`() Gets the index of this IDebugStackFrame. 0 indicates it is current location of execution.
`public `String`` | `getSourceName`() Gets the name of the source file for this IDebugStackFrame, as reported by the proxy
`public boolean` | `hasURIBeenSet`() Returns the number of times the URI was set.
`public void` | `setURI`(`URI` uri) Sets the `URI``` for the IDebugStackFrame.

## Method Detail

### getClassName() Method

    public String getClassName()

Gets the name of the class for this IDebugStackFrame, as reported by the proxy

#### Returns

the name of the class this stack frame is in.

### getFileURI() Method

    public URI getFileURI()

Gets a URI to the source code's file on the local machine. Will be null if the file can't be found.

#### Returns

the `URI``` describing where the IDE can get the source file to open for this stack frame.

### getLineNumber() Method

    public int getLineNumber()

Gets the line number of the execution point for this IDebugStackFrame, as reported by the proxy

#### Returns

the line number this stack frame is currently on.

### getMethodName() Method

    public String getMethodName()

Gets the name of the method for this IDebugStackFrame, as reported by the proxy

#### Returns

the name of the method this stack frame is executing in.

### getNumber() Method

    public int getNumber()

Gets the index of this IDebugStackFrame. 0 indicates it is current location of execution. Higher numbers are methods that call methods with lower numbers.

#### Returns

the index of the stack frame.

### getSourceName() Method

    public String getSourceName()

Gets the name of the source file for this IDebugStackFrame, as reported by the proxy

#### Returns

the name of the source file this stack frame is in.

### hasURIBeenSet() Method

    public boolean hasURIBeenSet()

Returns the number of times the URI was set.

#### Returns

int representing the number of times the stack frame info was set.

### setURI(URI) Method

    public void setURI(URI uri)

Sets the `URI``` for the IDebugStackFrame. This will be the `URI``` the IDE will use to find the file that implements the class in this stack frame. When a user clicks on the stack frame in the IDE, they will navigate to the file represented by this `URI```.

#### Parameters

uri
  URI that should be associated with this stack frame.