|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrockit.memleak.util.DummyClassInfo
public class DummyClassInfo
Dummy implementation of IClassInfo.
| Field Summary |
|---|
| 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 |
| Constructor Summary | |
|---|---|
DummyClassInfo(java.lang.String name,
IObjectInfo classLoader)
|
|
| Method Summary | ||
|---|---|---|
static DummyClassInfo |
createNested(java.lang.String name,
int depth)
Create a dummy IClassInfo with a dummy IObjectInfo as
class loader, both with the display name name. |
|
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()
|
|
java.lang.String |
getSourceFileName()
Returns the name of the source file for this class. |
|
boolean |
isArrayClass()
|
|
boolean |
isDiscarded()
|
|
|
select(ITypeResolver<T> resolver)
Select the type or types using operations on resolver. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyClassInfo(java.lang.String name,
IObjectInfo classLoader)
name - classLoader - | Method Detail |
|---|
public static final DummyClassInfo createNested(java.lang.String name,
int depth)
IClassInfo with a dummy IObjectInfo as
class loader, both with the display name name. The class
loader will also have a class, which will have a class loader and so
forth, until depth dummy instances have been created.
Note that a similar effect could be produced by circular references, but
it isn't recommended since that wouldn't be possible in a real JVM. Also
someone might attempt to navigate this structure until the bootstrap
class loader, normally designated by null, is found. (Although that type
of navigation should stop once it sees anything implementing
IDummy.)
name - the display name to use for classes and class loadersdepth - the total number of dummy instances to create
IClassInfo or null if depth is zero.public 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)
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.public 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)
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.public int getModifiers()
getModifiers in interface IAccessibleInfoModifierpublic java.lang.String getName()
IClassInfo
getName in interface IClassInfogetName in interface INamedTypeClass.getName()public int getNumDeclaredStaticFields()
getNumDeclaredStaticFields in interface IClassInfopublic int getNumInstanceFields()
getNumInstanceFields in interface IClassInfopublic java.lang.String getSourceFileName()
IClassInfo
getSourceFileName in interface IClassInfopublic boolean isArrayClass()
isArrayClass in interface IClassInfopublic int getClassId()
getClassId in interface IClassRefpublic boolean isDiscarded()
isDiscarded in interface IClassInfopublic <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 ITypeSpecifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||