|
||||||||||
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()
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)
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.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)
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.public int getModifiers()
getModifiers
in interface IAccessibleInfo
Modifier
public java.lang.String getName()
IClassInfo
getName
in interface IClassInfo
getName
in interface INamedType
Class.getName()
public int getNumDeclaredStaticFields()
getNumDeclaredStaticFields
in interface IClassInfo
public int getNumInstanceFields()
getNumInstanceFields
in interface IClassInfo
public java.lang.String getSourceFileName()
IClassInfo
getSourceFileName
in interface IClassInfo
public boolean isArrayClass()
isArrayClass
in interface IClassInfo
public int getClassId()
getClassId
in interface IClassRef
public boolean isDiscarded()
isDiscarded
in interface IClassInfo
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |