|
||||||||||
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 nullMethod Detail |
---|
public int getClassId()
getClassId
in interface IClassRef
public IObjectSpecifier getClassLoaderSpec()
IClassInfo
Feature.CLASS_LOADERS
may also
return null.
getClassLoaderSpec
in interface IClassInfo
IObjectSpecifier
of the class loader that
loaded this class.public IObjectInfo getClassLoaderInfo(Policy policy) throws GarbageCollectedException
IClassInfo
policy
. Finally, implementations without
Feature.CLASS_LOADERS
may also return null.
getClassLoaderInfo
in interface IClassInfo
IObjectInfo
of the class loader that loaded
this class, or null.
GarbageCollectedException
public IObjectSpecifier getClassObjectSpec()
IClassInfo
Feature.CLASS_IDS_ARE_OBJECT_IDS
this
should never return null. Other implementations might.
getClassObjectSpec
in interface IClassInfo
IObjectSpecifier
of the
Class
instance that corresponds to this class,
or null.public IObjectInfo getClassObjectInfo(Policy policy) throws GarbageCollectedException
IClassInfo
Feature.CLASS_IDS_ARE_OBJECT_IDS
this
should never return null (when called with a blocking policy
). Other implementations might.
getClassObjectInfo
in interface IClassInfo
IObjectInfo
of the Class
instance that corresponds to this class, or null.
GarbageCollectedException
public java.lang.String getName()
IClassInfo
getName
in interface IClassInfo
getName
in interface INamedType
Class.getName()
public boolean isArrayClass()
isArrayClass
in interface IClassInfo
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public <T> T select(ITypeResolver<T> resolver)
ITypeSpecifier
resolver
.
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 ITypeSpecifier
public java.lang.String toString()
toString
in class java.lang.Object
public int getObjectId()
getObjectId
in interface IObjectSpecifier
public int getModifiers()
getModifiers
in interface IAccessibleInfo
Modifier
public java.lang.String getSourceFileName()
IClassInfo
getSourceFileName
in interface IClassInfo
public int getNumDeclaredStaticFields()
getNumDeclaredStaticFields
in interface IClassInfo
public int getNumInstanceFields()
getNumInstanceFields
in interface IClassInfo
public boolean isDiscarded()
isDiscarded
in interface IClassInfo
public boolean overrideDefault(ValueProperty property, java.lang.Object value) throws java.lang.ClassCastException
overrideDefault
in interface IModifyOnce
java.lang.ClassCastException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |