public interface IJavaObject extends IJavaValue
Clients are not intended to implement this interface.
IJavaValue
Modifier and Type | Method and Description |
---|---|
IJavaFieldVariable |
getField(String name,
boolean superField)
Returns a variable representing the field in this object
with the given name, or
null if there is no
field with the given name, or the name is ambiguous. |
IJavaFieldVariable |
getField(String name,
String typeSignature)
Returns a variable representing the field in this object
with the given name declared in the type with the given
signature, or
null if there is no
field with the given name, or the name is ambiguous. |
IJavaThread |
getOwningThread()
Returns the threads which owns for the monitor associated to this object, or
null if no thread owns the monitor. |
IJavaThread[] |
getWaitingThreads()
Returns the threads waiting for the monitor associated to this object, or
null if no thread is waiting for the monitor. |
IJavaValue |
sendMessage(String selector,
String signature,
IJavaValue[] args,
IJavaThread thread,
boolean superSend)
Returns the result of sending the specified message to this object
with the given arguments in the specified thread.
|
IJavaValue |
sendMessage(String selector,
String signature,
IJavaValue[] args,
IJavaThread thread,
String typeSignature)
Returns the result of sending the specified message on the specified declaring type
to this object with the given arguments in the specified thread.
|
getGenericSignature, getJavaType, getSignature
getReferenceTypeName, getValueString, getVariables, hasVariables, isAllocated
getDebugTarget, getLaunch, getModelIdentifier
getAdapter
IJavaValue sendMessage(String selector, String signature, IJavaValue[] args, IJavaThread thread, boolean superSend) throws DebugException
selector
- the selector of the method to be invokedsignature
- the JNI style signature of the method to be invokedargs
- the arguments of the method, which can be
null
or empty if there are nonethread
- the thread in which to invoke the methodsuperSend
- true
if the method lookup should
begin in this object's superclassDebugException
- if this method fails. Reasons include:IJavaThread.ERR_NESTED_METHOD_INVOCATION
)IJavaThread.ERR_THREAD_NOT_SUSPENDED
)IJavaThread.ERR_INCOMPATIBLE_THREAD_STATE
)IJavaValue sendMessage(String selector, String signature, IJavaValue[] args, IJavaThread thread, String typeSignature) throws DebugException
selector
- the selector of the method to be invokedsignature
- the JNI style signature of the method to be invokedargs
- the arguments of the method, which can be
null
or empty if there are nonethread
- the thread in which to invoke the methodtypeSignature
- the signature of the type in which the method
is defined or null
if the method should be invoked normally using
polymorphismDebugException
- if this method fails. Reasons include:IJavaThread.ERR_NESTED_METHOD_INVOCATION
)IJavaThread.ERR_THREAD_NOT_SUSPENDED
)IJavaThread.ERR_INCOMPATIBLE_THREAD_STATE
)IJavaFieldVariable getField(String name, boolean superField) throws DebugException
null
if there is no
field with the given name, or the name is ambiguous.name
- field namesuperField
- whether or not to get the field in the superclass
of this objects.null
DebugException
- if this method fails. Reasons include:
IJavaFieldVariable getField(String name, String typeSignature) throws DebugException
null
if there is no
field with the given name, or the name is ambiguous.name
- field nametypeSignature
- the signature of the type in which the field
is definednull
DebugException
- if this method fails. Reasons include:
IJavaThread[] getWaitingThreads() throws DebugException
null
if no thread is waiting for the monitor.null
.DebugException
- if this method fails. Reasons include:
IJavaThread getOwningThread() throws DebugException
null
if no thread owns the monitor.null
.DebugException
- if this method fails. Reasons include:
Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.