APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.tools.jdi

public Class ClassLoaderReferenceImpl

extends ObjectReferenceImpl
implements ClassLoaderReference
Class Inheritance
All Implemented Interfaces
com.sun.jdi.ClassLoaderReference, com.sun.jdi.ObjectReference, com.sun.jdi.Value, com.sun.jdi.Mirror
Imports
java.util.ArrayList, .Collections, .Iterator, .List, com.sun.jdi.ClassLoaderReference, .ClassNotLoadedException, .ReferenceType, .Type, .VirtualMachine

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Inherited from com.sun.tools.jdi.ObjectReferenceImpl:
addedListenerref

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<ReferenceType>
definedClasses()

Implements com.sun.jdi.ClassLoaderReference.definedClasses.

Returns a list of all classes defined by this class loader.

protected String
pack-priv Type
findType(String signature)

protected ObjectReferenceImpl.Cache
pack-priv byte
public List<ReferenceType>
visibleClasses()

Implements com.sun.jdi.ClassLoaderReference.visibleClasses.

Returns a list of all classes which this class loader can find by name via ClassLoader::loadClass, Class::forName and bytecode linkage in the target VM.

Inherited from com.sun.tools.jdi.ObjectReferenceImpl:
disableCollectionenableCollectionentryCountequalsgetCachegetValuegetValueshashCodeinvokableReferenceTypeinvokeMethodisClassObjectisCollectedjdwpMonitorInfoowningThreadprepareForAssignmentTorefreferenceTypereferringObjectssendInvokeCommandsetValuetoStringtypeuniqueIDvalidateAssignmentvalidateClassMethodInvocationvalidateIfaceMethodInvocationvalidateMethodInvocationvmNotSuspendedvmSuspendedwaitingThreads

Constructor Detail

ClassLoaderReferenceImplback to summary
pack-priv ClassLoaderReferenceImpl(VirtualMachine aVm, long ref)

Method Detail

definedClassesback to summary
public List<ReferenceType> definedClasses()

Implements com.sun.jdi.ClassLoaderReference.definedClasses.

Doc from com.sun.jdi.ClassLoaderReference.definedClasses.

Returns a list of all classes defined by this class loader. No ordering of this list guaranteed. The returned list will include all reference types, including hidden classes or interfaces, loaded at least to the point of preparation, and types (like array) for which preparation is not defined.

descriptionback to summary
protected String description()

Overrides com.sun.tools.jdi.ObjectReferenceImpl.description.

findTypeback to summary
pack-priv Type findType(String signature) throws ClassNotLoadedException
newCacheback to summary
protected ObjectReferenceImpl.Cache newCache()

Overrides com.sun.tools.jdi.ObjectReferenceImpl.newCache.

typeValueKeyback to summary
pack-priv byte typeValueKey()

Overrides com.sun.tools.jdi.ObjectReferenceImpl.typeValueKey.

visibleClassesback to summary
public List<ReferenceType> visibleClasses()

Implements com.sun.jdi.ClassLoaderReference.visibleClasses.

Doc from com.sun.jdi.ClassLoaderReference.visibleClasses.

Returns a list of all classes which this class loader can find by name via ClassLoader::loadClass, Class::forName and bytecode linkage in the target VM. That is, all classes for which this class loader has been recorded as an initiating loader.

Each class in the returned list was created by this class loader either by defining it directly or by delegation to another class loader (see JVMS 5.3).

The returned list does not include hidden classes or interfaces or array classes whose element type is a hidden class or interface. as they cannot be discovered by any class loader

The visible class list has useful properties with respect to the type namespace. A particular type name will occur at most once in the list. Each field or variable declared with that type name in a class defined by this class loader must be resolved to that single type.

No ordering of the returned list is guaranteed.

Note that unlike definedClasses() and VirtualMachine#allClasses(), some of the returned reference types may not be prepared. Attempts to perform some operations on unprepared reference types (e.g. fields()) will throw a ClassNotPreparedException. Use ReferenceType#isPrepared() to determine if a reference type is prepared.

com.sun.tools.jdi back to summary

private Class ClassLoaderReferenceImpl.Cache

extends Cache
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv List<ReferenceType>
Inherited from com.sun.tools.jdi.ObjectReferenceImpl.Cache:
monitorInfo

Constructor Summary

AccessConstructor and Description
private

Field Detail

visibleClassesback to summary
pack-priv List<ReferenceType> visibleClasses

Constructor Detail

Cacheback to summary
private Cache()