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

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

 

org.netbeans.api.debugger.jpda
Interface ObjectVariable

All Superinterfaces:
Variable
All Known Subinterfaces:
Super, This

public interface ObjectVariable
extends Variable

Represents instance of some object in debugged JVM. This interface can be optionally inplemented by a implementation of LocalVariable or Field interfaces.

See Also:
LocalVariable, Field, This, Super, JPDAThread.getContendedMonitor(), JPDAThread.getOwnedMonitors()

Method Summary
 Field[] getAllStaticFields(int from, int to)
          Return all static fields.
 Field getField(String name)
          Returns field defined in this object.
 Field[] getFields(int from, int to)
          Returns non static fields defined in this object.
 int getFieldsCount()
          Number of fields defined in this object.
 Field[] getInheritedFields(int from, int to)
          Return all inherited fields.
 Super getSuper()
          Returns representation of super class of this object.
 String getToStringValue()
          Calls Object.toString() in debugged JVM and returns its value.
 Variable invokeMethod(String methodName, String signature, Variable[] arguments)
          Calls given method in debugged JVM on this instance and returns its value.
 
Methods inherited from interface org.netbeans.api.debugger.jpda.Variable
getType, getValue
 

Method Detail

getToStringValue

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

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

invokeMethod

public Variable invokeMethod(String methodName,
                             String signature,
                             Variable[] arguments)
                      throws NoSuchMethodException,
                             InvalidExpressionException
Calls given method in debugged JVM on this instance and returns its value.

Parameters:
methodName - a name of method to be called
signature - a signature of method to be called
arguments - a arguments to be used
Returns:
value of given method call on this instance
Throws:
NoSuchMethodException
InvalidExpressionException

getFieldsCount

public int getFieldsCount()
Number of fields defined in this object.

Returns:
number of fields defined in this object

getField

public Field getField(String name)
Returns field defined in this object.

Parameters:
name - a name of field to be returned
Returns:
field defined in this object

getFields

public Field[] getFields(int from,
                         int to)
Returns non static fields defined in this object.

Parameters:
from - a index of first field to be returned
to - a index of last field to be returned
Returns:
fields defined in this object

getAllStaticFields

public Field[] getAllStaticFields(int from,
                                  int to)
Return all static fields.

Returns:
all static fields

getInheritedFields

public Field[] getInheritedFields(int from,
                                  int to)
Return all inherited fields.

Returns:
all inherited fields

getSuper

public Super getSuper()
Returns representation of super class of this object.

Returns:
representation of super class of this object

 

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