|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.value.ClassInfo
public class ClassInfo
Representation of a class, including its name, ID, and class loader info.
| Field Summary | |
|---|---|
protected java.lang.String |
srcFileName
Source file name, or null if unknown. |
| Fields inherited from interface com.jrockit.memleak.IClassInfo |
|---|
ANNOTATION, CLASS_TYPE_NAME, EMPTY_ARRAY, ENUM |
| Fields inherited from interface com.jrockit.memleak.IAccessibleInfo |
|---|
SYNTHETIC, UNKNOWN_MODIFIERS |
| Fields inherited from interface com.jrockit.memleak.IObjectSpecifier |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
ClassInfo(IMemLeak memleak,
int classID,
java.lang.String name,
int modifiers,
int numDeclaredStaticFields,
int numInstanceFields,
java.lang.String srcFileName,
IObjectSpecifier classLoaderSpec)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object other)
|
|
int |
getClassId()
|
|
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. |
|
int |
getModifiers()
|
|
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()
|
|
int |
getObjectId()
|
|
java.lang.String |
getSourceFileName()
Returns the name of the source file for this class. |
|
int |
hashCode()
|
|
boolean |
isArrayClass()
|
|
boolean |
isDiscarded()
|
|
boolean |
overrideDefault(ValueProperty property,
java.lang.Object value)
|
|
|
select(ITypeResolver<T> resolver)
Select the type or types using operations on resolver. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String srcFileName
| Constructor Detail |
|---|
public ClassInfo(IMemLeak memleak,
int classID,
java.lang.String name,
int modifiers,
int numDeclaredStaticFields,
int numInstanceFields,
java.lang.String srcFileName,
IObjectSpecifier classLoaderSpec)
memleak - classID - name - modifiers - numDeclaredStaticFields - numInstanceFields - srcFileName - classLoaderSpec - or null| Method Detail |
|---|
public int getClassId()
getClassId in interface IClassRefpublic IObjectSpecifier getClassLoaderSpec()
IClassInfoFeature.CLASS_LOADERS may also
return null.
getClassLoaderSpec in interface IClassInfoIObjectSpecifier of the class loader that
loaded this class.
public IObjectInfo getClassLoaderInfo(Policy policy)
throws GarbageCollectedException
IClassInfopolicy. Finally, implementations without
Feature.CLASS_LOADERS may also return null.
getClassLoaderInfo in interface IClassInfoIObjectInfo of the class loader that loaded
this class, or null.
GarbageCollectedExceptionpublic IObjectSpecifier getClassObjectSpec()
IClassInfoFeature.CLASS_IDS_ARE_OBJECT_IDS this
should never return null. Other implementations might.
getClassObjectSpec in interface IClassInfoIObjectSpecifier of the
Class instance that corresponds to this class,
or null.
public IObjectInfo getClassObjectInfo(Policy policy)
throws GarbageCollectedException
IClassInfoFeature.CLASS_IDS_ARE_OBJECT_IDS this
should never return null (when called with a blocking policy). Other implementations might.
getClassObjectInfo in interface IClassInfoIObjectInfo of the Class
instance that corresponds to this class, or null.
GarbageCollectedExceptionpublic java.lang.String getName()
IClassInfo
getName in interface IClassInfogetName in interface INamedTypeClass.getName()public boolean isArrayClass()
isArrayClass in interface IClassInfopublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic <T> T select(ITypeResolver<T> resolver)
ITypeSpecifierresolver.
NOTE: It is strictly forbidden to keep a reference to the given resolver (including weak references etc.) as well as any type of caching based on values returned from the resolver. Only the resolver itself is capable of determining if results may be cached.
select in interface ITypeSpecifierpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getObjectId()
getObjectId in interface IObjectSpecifierpublic int getModifiers()
getModifiers in interface IAccessibleInfoModifierpublic java.lang.String getSourceFileName()
IClassInfo
getSourceFileName in interface IClassInfopublic int getNumDeclaredStaticFields()
getNumDeclaredStaticFields in interface IClassInfopublic int getNumInstanceFields()
getNumInstanceFields in interface IClassInfopublic boolean isDiscarded()
isDiscarded in interface IClassInfo
public boolean overrideDefault(ValueProperty property,
java.lang.Object value)
throws java.lang.ClassCastException
overrideDefault in interface IModifyOncejava.lang.ClassCastException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||