public interface IJavaObject extends IJavaValue
IJavaValue
Modifier and Type | Method and Description |
---|---|
void |
disableCollection()
Prevents this object from being garbage collected.
|
void |
enableCollection()
Permits this object to be garbage collected.
|
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. |
IJavaObject[] |
getReferringObjects(long max)
Returns objects that directly reference this object.
|
long |
getUniqueId()
Returns the unique id for this object.
|
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, isNull
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:
IJavaObject[] getReferringObjects(long max) throws DebugException
max
- the maximum number of references to retrieve or 0 for all
referencesDebugException
- if the request failsvoid enableCollection() throws DebugException
DebugException
- if request failsIJavaDebugTarget
void disableCollection() throws DebugException
DebugException
- if request failsIJavaDebugTarget
long getUniqueId() throws DebugException
null
DebugException
- if the request fails
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.