站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

CallStackFrame (NetBeans Debugger JPDA API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.api.debugger.jpda
Interface CallStackFrame


public interface CallStackFrame

Represents one stack frame.


Method Summary
 List getAvailableStrata()
          Returns name of default stratumn.
 String getClassName()
          Returns class name of this stack frame.
 String getDefaultStratum()
          Returns name of default stratumn.
 int getLineNumber(String struts)
          Returns line number associated with this stack frame.
 LocalVariable[] getLocalVariables()
          Returns local variables.
 String getMethodName()
          Returns method name associated with this stack frame.
 String getSourceName(String struts)
          Returns name of file this stack frame is stopped in.
 String getSourcePath(String stratum)
          Returns source path of file this frame is stopped in or null.
 This getThisVariable()
          Returns object reference this frame is associated with or null ( frame is in static method).
 JPDAThread getThread()
          Returns thread.
 boolean isObsolete()
          Returns true if this frame is obsoleted.
 void makeCurrent()
          Sets this frame current.
 void popFrame()
          Pop stack frames.
 

Method Detail

getLineNumber

public int getLineNumber(String struts)
Returns line number associated with this stack frame.

Parameters:
struts - a language name or null for default language
Returns:
line number associated with this this stack frame

getMethodName

public String getMethodName()
Returns method name associated with this stack frame.

Returns:
method name associated with this stack frame

getClassName

public String getClassName()
Returns class name of this stack frame.

Returns:
class name of this stack frame

getDefaultStratum

public String getDefaultStratum()
Returns name of default stratumn.

Returns:
name of default stratumn

getAvailableStrata

public List getAvailableStrata()
Returns name of default stratumn.

Returns:
name of default stratumn

getSourceName

public String getSourceName(String struts)
                     throws com.sun.jdi.AbsentInformationException
Returns name of file this stack frame is stopped in.

Parameters:
struts - a language name or null for default language
Returns:
name of file this stack frame is stopped in
Throws:
NoInformationException - if information about source is not included in class file
com.sun.jdi.AbsentInformationException

getSourcePath

public String getSourcePath(String stratum)
                     throws com.sun.jdi.AbsentInformationException
Returns source path of file this frame is stopped in or null.

Returns:
source path of file this frame is stopped in or null
Throws:
com.sun.jdi.AbsentInformationException

getLocalVariables

public LocalVariable[] getLocalVariables()
                                  throws com.sun.jdi.AbsentInformationException
Returns local variables.

Returns:
local variables
Throws:
com.sun.jdi.AbsentInformationException

getThisVariable

public This getThisVariable()
Returns object reference this frame is associated with or null ( frame is in static method).

Returns:
object reference this frame is associated with or null

makeCurrent

public void makeCurrent()
Sets this frame current.

See Also:
JPDADebugger.getCurrentCallStackFrame()

isObsolete

public boolean isObsolete()
Returns true if this frame is obsoleted.

Returns:
true if this frame is obsoleted

popFrame

public void popFrame()
Pop stack frames. All frames up to and including the frame are popped off the stack. The frame previous to the parameter frame will become the current frame.


getThread

public JPDAThread getThread()
Returns thread.

Returns:
thread

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.