| Modifier and Type | Field and Description |
|---|---|
| private Type | |
| private TypeDataBase | |
| private Map | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public | VirtualBaseConstructor(TypeDataBase db, Type baseType, String packageName, Class<T> unknownTypeHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | addMapping(String cTypeName, Class<? extends T> clazz)
Adds a mapping from the given C++ type name to the given Java class. |
| public T | instantiateWrapperFor(Address addr)
Implements abstract sun. Instantiate the most-precisely typed wrapper object available for the type of the given Address. |
| baseType | back to summary |
|---|---|
| private Type baseType | |
| db | back to summary |
|---|---|
| private TypeDataBase db | |
| map | back to summary |
|---|---|
| private Map<String, Class<? extends T>> map | |
| unknownTypeHandler | back to summary |
|---|---|
| private Class<T> unknownTypeHandler | |
| VirtualBaseConstructor | back to summary |
|---|---|
| public VirtualBaseConstructor(TypeDataBase db, Type baseType, String packageName, Class<T> unknownTypeHandler) | |
| addMapping | back to summary |
|---|---|
| public boolean addMapping(String cTypeName, Class<? extends T> 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 T 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). | |