| Modifier and Type | Field and Description |
|---|---|
| private TypeDataBase | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addMapping(String cTypeName, Class<? extends VMObject> clazz)
Adds a mapping from the given C++ type name to the given Java class. |
| public VMObject | instantiateWrapperFor(Address addr)
Implements abstract sun. Instantiate the most-precisely typed wrapper object available for the type of the given Address. |
| db | back to summary |
|---|---|
| private TypeDataBase db | |
| map | back to summary |
|---|---|
| private Map<String, Class<? extends VMObject>> map | |
| VirtualConstructor | back to summary |
|---|---|
| public VirtualConstructor(TypeDataBase db) | |
| addMapping | back to summary |
|---|---|
| public boolean addMapping(String cTypeName, Class<? extends VMObject> clazz) Adds a mapping from the given C++ type name to the given Java class. The latter must be a subclass of sun.jvm.hotspot.runtime.VMObject. Returns false if there was already a class for this type name in the map. | |
| instantiateWrapperFor | back to summary |
|---|---|
| public VMObject instantiateWrapperFor(Address addr) throws WrongTypeException Implements abstract sun. Instantiate the most-precisely typed wrapper object available for the type of the given Address. If no type in the mapping matched the type of the Address, throws a WrongTypeException. Returns null for a null address (similar behavior to VMObjectFactory). | |