Module openj9.dtfj

Class ClassWalker

java.lang.Object
com.ibm.j9ddr.vm29.tools.ddrinteractive.ClassWalker
Direct Known Subclasses:
RamClassWalker, RomClassWalker

public abstract class ClassWalker extends Object
  • Field Details

  • Constructor Details

    • ClassWalker

      public ClassWalker()
  • Method Details

    • 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()
    • getDebugExtForMethodName

      protected String getDebugExtForMethodName(String methodName)
    • 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 structure
      renameFields - list of names to rename the original field names in the structure
      Throws:
      CorruptDataException
    • addObjectsasSlot

      protected void addObjectsasSlot(StructurePointer methodClass) throws CorruptDataException
      Throws:
      CorruptDataException