org.eclipse.jdt.debug.core
public interface IJavaReferenceType extends IJavaType
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAllFieldNames()
Returns a collection of the names of all of the fields declared in this
type, all of its super classes, implemented interfaces and super interfaces.
|
String[] |
getAvailableStrata()
Returns a collection of strata available for this type.
|
IJavaObject |
getClassLoaderObject()
Returns the class loader object that loaded the class corresponding to this
type, or
null if this type was loaded by the bootstrap loader. |
IJavaClassObject |
getClassObject()
Returns the class object associated with this type.
|
String[] |
getDeclaredFieldNames()
Returns a collection of the names of the fields declared in this type.
|
String |
getDefaultStratum()
Returns the default stratum for this type.
|
IJavaFieldVariable |
getField(String name)
Returns a variable representing the static field in this type
with the given name, or
null if there is no
field with the given name, or the name is ambiguous. |
String |
getGenericSignature()
Returns the generic signature as defined in the JVM
specification for this type.
|
long |
getInstanceCount()
Returns the number of instances of this type currently allocated in the target
virtual machine, or -1 if instance counts are not supported by the target.
|
IJavaObject[] |
getInstances(long max)
Retrieves and returns instances of this reference type.
|
String |
getSourceName()
Returns the unqualified name of the source file corresponding to this type,
or
null if source name debug attribute is not present. |
String[] |
getSourceNames(String stratum)
Returns the unqualified names of the source files corresponding to this type in
the specified stratum, or
null if the source name debug attribute is
not present. |
String[] |
getSourcePaths(String stratum)
Returns the qualified names of the source files corresponding to this type in
the specified stratum, or
null if the source name debug attribute is
not present. |
getName, getSignaturegetDebugTarget, getLaunch, getModelIdentifiergetAdapterIJavaFieldVariable getField(String name) throws DebugException
null if there is no
field with the given name, or the name is ambiguous.name - field namenullDebugException - if this method fails. Reasons include:
IJavaClassObject getClassObject() throws DebugException
DebugException - if this method fails. Reasons include:
String[] getAvailableStrata() throws DebugException
DebugException - if unable to retrieve available strataString getDefaultStratum() throws DebugException
DebugException - if unable to retrieve the default stratumString[] getDeclaredFieldNames() throws DebugException
DebugException - if unable to retrieve declared field namesString[] getAllFieldNames() throws DebugException
DebugException - if unable to retrieve field namesIJavaObject getClassLoaderObject() throws DebugException
null if this type was loaded by the bootstrap loader.nullDebugExceptionString getGenericSignature() throws DebugException
null if this type is not a generic type.null if generic signature not availableDebugException - if this method fails. Reasons include:
String getSourceName() throws DebugException
null if source name debug attribute is not present.
The source name returned is based on this target's default stratum.nullDebugException - if an exception occurs retrieving the source nameString[] getSourceNames(String stratum) throws DebugException
null if the source name debug attribute is
not present.stratum - stratum identifier or null to use this type's default stratumnullDebugException - if an exception occurs retrieving the source nameString[] getSourcePaths(String stratum) throws DebugException
null if the source name debug attribute is
not present.stratum - stratum identifier or null to use this type's default stratumnullDebugException - if an exception occurs retrieving the source nameIJavaObject[] getInstances(long max) throws DebugException
max - the maximum number of instances to retrieve or 0 to retrieve all instancesDebugException - on failurelong getInstanceCount()
throws DebugException
DebugException - on failureGuidelines for using Eclipse APIs. Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.