- java.lang.Object
-
- com.ibm.j9ddr.vm29.tools.ddrinteractive.ClassWalker
-
- Direct Known Subclasses:
RamClassWalker
,RomClassWalker
public abstract class ClassWalker extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IClassWalkCallbacks
classWalkerCallback
protected StructurePointer
clazz
protected HashMap<String,String>
debugExtMap
-
Constructor Summary
Constructors Constructor Description ClassWalker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addObjectsasSlot(StructurePointer methodClass)
protected void
addObjectsAsSlot(StructurePointer methodClass, HashMap<String,String> renameFields)
It walks through each field in this structure that is represented by methodClass and registers each field as a slot into ClassWalkerCallBack It uses the StructureDescriptor of J9DDR to get the FieldDescriptor of a structure.abstract void
allSlotsInObjectDo(IClassWalkCallbacks classWalker)
Walks every slots in an object and send the values to the classWalkerprotected void
fillDebugExtMap()
IClassWalkCallbacks
getClassWalkerCallbacks()
StructurePointer
getClazz()
abstract Context
getContext()
protected String
getDebugExtForMethodName(String methodName)
-
-
-
Field Detail
-
clazz
protected StructurePointer clazz
-
classWalkerCallback
protected IClassWalkCallbacks classWalkerCallback
-
-
Method Detail
-
allSlotsInObjectDo
public abstract void allSlotsInObjectDo(IClassWalkCallbacks classWalker) throws CorruptDataException
Walks every slots in an object and send the values to the classWalker- Parameters:
classWalker
- a class that will receive the slot and sections of the object- Throws:
CorruptDataException
-
getContext
public abstract Context getContext()
-
fillDebugExtMap
protected void fillDebugExtMap()
-
getClazz
public StructurePointer getClazz()
-
getClassWalkerCallbacks
public IClassWalkCallbacks getClassWalkerCallbacks()
-
addObjectsAsSlot
protected void addObjectsAsSlot(StructurePointer methodClass, HashMap<String,String> renameFields) throws CorruptDataException
It walks through each field in this structure that is represented by methodClass and registers each field as a slot into ClassWalkerCallBack It uses the StructureDescriptor of J9DDR to get the FieldDescriptor of a structure. The name, type and address are found in the FieldDescriptor. The name, type and address are guaranteed to match the current core file, since they are taken from it.- Parameters:
methodClass
- pointer class that is generated for the VM structurerenameFields
- list of names to rename the original field names in the structure- Throws:
CorruptDataException
-
addObjectsasSlot
protected void addObjectsasSlot(StructurePointer methodClass) throws CorruptDataException
- Throws:
CorruptDataException
-
-