Class DWARFCompileUnit


  • public class DWARFCompileUnit
    extends java.lang.Object
    DWARFCompileUnit hold some values retrieved from a DWARF DW_TAG_compile_unit DIE.

    • Constructor Summary

      Constructors 
      Constructor Description
      DWARFCompileUnit​(java.lang.String name, java.lang.String producer, java.lang.String comp_dir, java.lang.Number low_pc, java.lang.Number high_pc, java.lang.Number language, java.lang.Number stmt_list, DWARFIdentifierCase identifier_case, boolean hasDWO, DWARFLine line)  
    • Constructor Detail

      • DWARFCompileUnit

        public DWARFCompileUnit​(java.lang.String name,
                                java.lang.String producer,
                                java.lang.String comp_dir,
                                java.lang.Number low_pc,
                                java.lang.Number high_pc,
                                java.lang.Number language,
                                java.lang.Number stmt_list,
                                DWARFIdentifierCase identifier_case,
                                boolean hasDWO,
                                DWARFLine line)
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the compile unit
        Returns:
        the name of the compile unit
      • getFileName

        public java.lang.String getFileName()
        Get the filename of the compile unit
        Returns:
        the filename of the compile unit
      • getFullFileByIndex

        public java.lang.String getFullFileByIndex​(int index)
        Get a file name with the full path included based on a file index.
        Parameters:
        index - index of the file
        Returns:
        file name with full path or null if line information does not exist
        Throws:
        java.lang.IllegalArgumentException - if a negative or invalid file index is given
      • getFileByIndex

        public java.lang.String getFileByIndex​(int index)
        Get a file name based on a file index.
        Parameters:
        index - index of the file
        Returns:
        file name or null if line information does not exist
        Throws:
        java.lang.IllegalArgumentException - if a negative or invalid file index is given
      • getProducer

        public java.lang.String getProducer()
        Get the producer of the compile unit
        Returns:
        the producer of the compile unit
      • getCompileDirectory

        public java.lang.String getCompileDirectory()
        Get the compile directory of the compile unit
        Returns:
        the compile directory of the compile unit
      • getHighPC

        public java.lang.Number getHighPC()
        Get the high PC value of the compile unit
        Returns:
        the high PC value of the compile unit
      • getLowPC

        public java.lang.Number getLowPC()
        Get the low PC value of the compile unit
        Returns:
        the low PC value of the compile unit
      • getLanguage

        public int getLanguage()
        Get the source language of the compile unit.
        Returns:
        the source language of the compile unit
      • getStatementList

        public int getStatementList()
        Get the statement list of the compile unit.
        Returns:
        the statement list of the compile unit
      • getIdentifierCase

        public DWARFIdentifierCase getIdentifierCase()
        Get the identifier case of the compile unit
        Returns:
        the identifier case of the compile unit
      • hasDWO

        public boolean hasDWO()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object