APIdia Launch Partner
Top Description Constructors Methods
sun.jvm.hotspot.runtime

public Class VMObjectFactory<T extends VMObject>

extends Object
Class Inheritance
Imports
java.lang.reflect.*, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.types.*

This class implements a factory mechanism for the objects created to wrap Addresses. It requires that the class passed in implement a constructor taking with the following signature:

public <Type>(sun.jvm.hotspot.Address)

It is used to write shorter code when wrapping Addresses since null checks are no longer necessary. In addition, it is a central location where a canonicalizing map could be implemented if one were desired (though the current system is designed to not require one.)

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T> T
newObject(Class<T> clazz, Address addr)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

VMObjectFactoryback to summary
public VMObjectFactory()

Method Detail

newObjectback to summary
public static <T> T newObject(Class<T> clazz, Address addr) throws ConstructionException