|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClassInfo
Representation of a class, including its name, ID, class loader ID, and
various other meta data that cannot reasonably change during the lifetime of
a JVM. (If a JVM supports a class redefinition, typically through a debugger
interface, that would violate these constraints, a new IClassInfo
would likely need to be created.)
| Field Summary | |
|---|---|
static int |
ANNOTATION
The int modifier value set for annotation types. |
static java.lang.String |
CLASS_TYPE_NAME
The internal "type name" for the special class java.lang.Class, often useful when implementing the IMemLeak interface. |
static IClassInfo[] |
EMPTY_ARRAY
An empty IClassInfo array. |
static int |
ENUM
The int value representing the enum modifier. |
| Fields inherited from interface com.jrockit.memleak.IAccessibleInfo |
|---|
SYNTHETIC, UNKNOWN_MODIFIERS |
| Method Summary | |
|---|---|
IObjectInfo |
getClassLoaderInfo(Policy policy)
Get the class loader of this class, or null if it is the boot class loader. |
IObjectSpecifier |
getClassLoaderSpec()
Get the class loader of this class, or null if it is the boot class loader. |
IObjectInfo |
getClassObjectInfo(Policy policy)
For implementations with Feature.CLASS_IDS_ARE_OBJECT_IDS this
should never return null (when called with a blocking policy). |
IObjectSpecifier |
getClassObjectSpec()
For implementations with Feature.CLASS_IDS_ARE_OBJECT_IDS this
should never return null. |
java.lang.String |
getName()
Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this IClassInfo object. |
int |
getNumDeclaredStaticFields()
|
int |
getNumInstanceFields()
|
java.lang.String |
getSourceFileName()
Returns the name of the source file for this class. |
boolean |
isArrayClass()
|
boolean |
isDiscarded()
|
| Methods inherited from interface com.jrockit.memleak.IClassRef |
|---|
getClassId |
| Methods inherited from interface com.jrockit.memleak.ITypeSpecifier |
|---|
select |
| Methods inherited from interface com.jrockit.memleak.IAccessibleInfo |
|---|
getModifiers |
| Field Detail |
|---|
static final int ANNOTATION
int modifier value set for annotation types. (Made
public here, since it isn't elsewhere.)
Modifier,
Class,
Constant Field Valuesstatic final int ENUM
int value representing the enum modifier.
(Made public here, since it isn't elsewhere.)
Modifier,
Class,
Constant Field Valuesstatic final java.lang.String CLASS_TYPE_NAME
IMemLeak interface.
FIXME: Clean up comment!
static final IClassInfo[] EMPTY_ARRAY
IClassInfo array.
| Method Detail |
|---|
java.lang.String getName()
getName in interface INamedTypeClass.getName()boolean isArrayClass()
IObjectSpecifier getClassLoaderSpec()
Feature.CLASS_LOADERS may also
return null.
IObjectSpecifier of the class loader that
loaded this class.
IObjectInfo getClassLoaderInfo(Policy policy)
throws GarbageCollectedException
policy. Finally, implementations without
Feature.CLASS_LOADERS may also return null.
policy -
IObjectInfo of the class loader that loaded
this class, or null.
GarbageCollectedExceptionIObjectSpecifier getClassObjectSpec()
Feature.CLASS_IDS_ARE_OBJECT_IDS this
should never return null. Other implementations might.
IObjectSpecifier of the
Class instance that corresponds to this class,
or null.
IObjectInfo getClassObjectInfo(Policy policy)
throws GarbageCollectedException
Feature.CLASS_IDS_ARE_OBJECT_IDS this
should never return null (when called with a blocking policy). Other implementations might.
policy -
IObjectInfo of the Class
instance that corresponds to this class, or null.
GarbageCollectedExceptionjava.lang.String getSourceFileName()
int getNumDeclaredStaticFields()
int getNumInstanceFields()
boolean isDiscarded()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||