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

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

 

org.netbeans.api.debugger.jpda
Interface JPDAWatch

All Superinterfaces:
Variable

public interface JPDAWatch
extends Variable

Represents watch in JPDA debugger.


Method Summary
 String getExceptionDescription()
          Returns description of problem is this watch can not be evaluated in current context.
 String getExpression()
          Watched expression.
 String getToStringValue()
          Calls Object.toString() in debugged JVM and returns its value.
 String getType()
          Declared type of this local.
 String getValue()
          Text representation of current value of this local.
 void remove()
          Remove the watch from the list of all watches in the system.
 void setExpression(String expression)
          Sets watched expression.
 void setValue(String value)
          Sets value of this local represented as text.
 

Method Detail

getExpression

public String getExpression()
Watched expression.

Returns:
watched expression

setExpression

public void setExpression(String expression)
Sets watched expression.

Parameters:
expression - a expression to be watched

remove

public void remove()
Remove the watch from the list of all watches in the system.


getType

public String getType()
Declared type of this local.

Specified by:
getType in interface Variable
Returns:
declared type of this local

getValue

public String getValue()
Text representation of current value of this local.

Specified by:
getValue in interface Variable
Returns:
text representation of current value of this local

getExceptionDescription

public String getExceptionDescription()
Returns description of problem is this watch can not be evaluated in current context.

Returns:
description of problem

setValue

public void setValue(String value)
              throws InvalidExpressionException
Sets value of this local represented as text.

Parameters:
value - a new value of this variable represented as text
Throws:
InvalidExpressionException

getToStringValue

public String getToStringValue()
                        throws InvalidExpressionException
Calls Object.toString() in debugged JVM and returns its value.

Returns:
toString () value of this instance
Throws:
InvalidExpressionException

 

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