|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJavaObject
A value referencing an object on a target VM.
IJavaValue
Method Summary | |
---|---|
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. |
Methods inherited from interface org.eclipse.jdt.debug.core.IJavaValue |
---|
getGenericSignature, getJavaType, getSignature, isNull |
Methods inherited from interface org.eclipse.debug.core.model.IValue |
---|
getReferenceTypeName, getValueString, getVariables, hasVariables, isAllocated |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getDebugTarget, getLaunch, getModelIdentifier |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
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 superclass
DebugException
- 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 polymorphism
DebugException
- 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 defined
null
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
references
DebugException
- 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
|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.