| org.eclipse.jdt.debug.core.IJavaClassType
All known Subclasses: org.eclipse.jdt.internal.debug.core.model.JDIClassType,
IJavaClassType | public interface IJavaClassType extends IJavaReferenceType(Code) | | The class of an object on a Java debug target.
Clients are not intended to implement this interface.
See Also: IJavaValue since: 2.0 |
Method Summary | |
public IJavaInterfaceType[] | getAllInterfaces() Returns the interface objects associated with all interfaces this class implements,
directly or indirectly.
the interface objects associated with the interfaces this class directly implements,directly or indirectly exception: DebugException - if this method fails. | public IJavaInterfaceType[] | getInterfaces() Returns the interface objects associated with the interfaces this class directly implements.
Only those interfaces declared in the implements clause for this class are included.
the interface objects associated with the interfaces this class directly implements exception: DebugException - if this method fails. | public IJavaClassType | getSuperclass() Returns the superclass of this class type, or null
if no such class exists.
the superclass of this class type, or null exception: DebugException - if this method fails. | public boolean | isEnum() Returns whether this type is declared as a type safe enumeration.
true if this type is a type safe enumeration,false otherwise. exception: DebugException - if this method fails. | public IJavaObject | newInstance(String signature, IJavaValue[] args, IJavaThread thread) Returns a new instance of this class by invoking the
constructor with the given signature and arguments in
the specified thread. | public IJavaValue | sendMessage(String selector, String signature, IJavaValue[] args, IJavaThread thread) Returns the result of sending the specified message to this class
with the given arguments in the specified thread (invokes a static
method on this type). |
getAllInterfaces | public IJavaInterfaceType[] getAllInterfaces() throws DebugException(Code) | | Returns the interface objects associated with all interfaces this class implements,
directly or indirectly.
the interface objects associated with the interfaces this class directly implements,directly or indirectly exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
since: 3.0 |
getInterfaces | public IJavaInterfaceType[] getInterfaces() throws DebugException(Code) | | Returns the interface objects associated with the interfaces this class directly implements.
Only those interfaces declared in the implements clause for this class are included.
the interface objects associated with the interfaces this class directly implements exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
since: 3.0 |
getSuperclass | public IJavaClassType getSuperclass() throws DebugException(Code) | | Returns the superclass of this class type, or null
if no such class exists.
the superclass of this class type, or null exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
|
isEnum | public boolean isEnum() throws DebugException(Code) | | Returns whether this type is declared as a type safe enumeration.
true if this type is a type safe enumeration,false otherwise. exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
since: 3.1 |
newInstance | public IJavaObject newInstance(String signature, IJavaValue[] args, IJavaThread thread) throws DebugException(Code) | | Returns a new instance of this class by invoking the
constructor with the given signature and arguments in
the specified thread. The given thread is resumed to perform this
method invocation and suspends in its original location when
this method invocation is complete. This method does not return
until the method invocation is complete. Resuming the specified thread
can result in breakpoints being hit, infinite loops, and deadlock.
Parameters: signature - the JNI style signature of the method to be invoked Parameters: args - the arguments of the constructor, which can benull or empty if there are none Parameters: thread - the thread in which to invoke the constructor the result of invoking the constructor exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
- This type does not implement the specified constructor
- An exception occurs while invoking the specified constructor
- The given thread is already performing a message send,(status code
IJavaThread.ERR_NESTED_METHOD_INVOCATION ) - The given thread is not currently suspended(status code
IJavaThread.ERR_THREAD_NOT_SUSPENDED ) - The given thread was explicitly suspended(status code
IJavaThread.ERR_INCOMPATIBLE_THREAD_STATE )
|
sendMessage | public IJavaValue sendMessage(String selector, String signature, IJavaValue[] args, IJavaThread thread) throws DebugException(Code) | | Returns the result of sending the specified message to this class
with the given arguments in the specified thread (invokes a static
method on this type). The given thread is resumed to perform this
method invocation and suspends in its original location when this
method invocation is complete. This method does not return until the
method invocation is complete. Resuming the specified thread can
result in breakpoints being hit, infinite loops, and deadlock.
Parameters: selector - the selector of the method to be invoked Parameters: signature - the JNI style signature of the method to be invoked Parameters: args - the arguments of the method, which can benull or empty if there are none Parameters: thread - the thread in which to invoke the method the result of invoking the method exception: DebugException - if this method fails. Reasons include:- Failure communicating with the VM. The DebugException'sstatus code contains the underlying exception responsible forthe failure.
- This object does not implement the specified method
- An exception occurs while invoking the specified method
- The given thread is already performing a message send,(status code
IJavaThread.ERR_NESTED_METHOD_INVOCATION ) - The given thread is not currently suspended(status code
IJavaThread.ERR_THREAD_NOT_SUSPENDED ) - The given thread was explicitly suspended(status code
IJavaThread.ERR_INCOMPATIBLE_THREAD_STATE )
|
|
|