public interface IJavaClassType extends IJavaReferenceType
IJavaValue
Modifier and Type | Method and Description |
---|---|
IJavaInterfaceType[] |
getAllInterfaces()
Returns the interface objects associated with all interfaces
this class implements, directly or indirectly.
|
IJavaInterfaceType[] |
getInterfaces()
Returns the interface objects associated with the interfaces this class
directly implements.
|
IJavaClassType |
getSuperclass()
Returns the superclass of this class type, or
null if no
such class exists. |
boolean |
isEnum()
Returns whether this type is declared as a type safe enumeration.
|
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.
|
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).
|
getAllFieldNames, getAvailableStrata, getClassLoaderObject, getClassObject, getDeclaredFieldNames, getDefaultStratum, getField, getGenericSignature, getInstanceCount, getInstances, getSourceName, getSourceNames, getSourcePaths
getName, getSignature
getDebugTarget, getLaunch, getModelIdentifier
getAdapter
IJavaObject newInstance(String signature, IJavaValue[] args, IJavaThread thread) throws DebugException
signature
- the JNI style signature of the method to be invokedargs
- the arguments of the constructor, which can be
null
or empty if there are nonethread
- the thread in which to invoke the constructorDebugException
- 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) 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 methodDebugException
- if this method fails. Reasons include:
IJavaThread.ERR_NESTED_METHOD_INVOCATION
)IJavaThread.ERR_THREAD_NOT_SUSPENDED
)IJavaThread.ERR_INCOMPATIBLE_THREAD_STATE
)IJavaClassType getSuperclass() throws DebugException
null
if no
such class exists.null
DebugException
- if this method fails. Reasons include:
IJavaInterfaceType[] getInterfaces() throws DebugException
implements
clause for this class are included.DebugException
- if this method fails. Reasons include:
IJavaInterfaceType[] getAllInterfaces() throws DebugException
DebugException
- if this method fails. Reasons include:
boolean isEnum() throws DebugException
true
if this type is a type safe enumeration,
false
otherwise.DebugException
- if this method fails. Reasons include:
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.