Class DIEAMonitoredIterator


  • public class DIEAMonitoredIterator
    extends java.lang.Object
    Handles the details of iterating all the DIEAs of a DWARF program.

    DWARF programs are made of multiple compilation units (CUs), and each CU has DIEs that are grouped together into aggregates (DIEAs).

    In normal operation, to iterate the DIEAs, each CU's DIEs are loaded into memory, iterated, and then thrown away before going to the next CU.

    There are typically no DIE references between CUs, but if there are, DWARFImportOptions.isPreloadAllDIEs() needs to be turned on by the user before analysis begins.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Iterable<DIEAggregate> iterable​(DWARFProgram prog, java.lang.String monitorMessage, TaskMonitor monitor)
      Create an iterable to allow for-each usage of this iterator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DIEAMonitoredIterator

        public DIEAMonitoredIterator()
    • Method Detail

      • iterable

        public static java.lang.Iterable<DIEAggregate> iterable​(DWARFProgram prog,
                                                                java.lang.String monitorMessage,
                                                                TaskMonitor monitor)
        Create an iterable to allow for-each usage of this iterator.
        Parameters:
        prog - DWARFProgram that holds the DIEs.
        monitorMessage - String to display in the TaskMonitor.
        monitor - TaskMonitor
        Returns:
        Iterable that can be used in a for-each loop.