Class SomCompilationUnit

java.lang.Object
ghidra.app.util.bin.format.som.SomCompilationUnit
All Implemented Interfaces:
StructConverter

public class SomCompilationUnit extends Object implements StructConverter
Represents a SOM compilation_unit structure
See Also:
  • Field Details

  • Constructor Details

    • SomCompilationUnit

      public SomCompilationUnit(BinaryReader reader, long symbolStringsLocation) throws IOException
      Creates a new SomCompilationUnit
      Parameters:
      reader - A BinaryReader positioned at the start of the record
      symbolStringsLocation - The starting index of the symbol strings
      Throws:
      IOException - if there was an IO-related error
  • Method Details

    • getName

      public String getName()
      Returns the compilation unit name.
      Returns:
      the compilation unit name
    • getLanguageName

      public String getLanguageName()
      Returns the language name.
      Returns:
      the language name
    • getProductId

      public String getProductId()
      Returns the product ID.
      Returns:
      the product ID
    • getVersionId

      public String getVersionId()
      Returns the version ID.
      Returns:
      the version ID
    • getReserved

      public int getReserved()
      Returns the reserved value.
      Returns:
      the reserved value
    • getChunkFlag

      public boolean getChunkFlag()
      Returns whether or not the compilation unit is not the first SOM in a multiple chunk compilation.
      Returns:
      whether or not the compilation unit is not the first SOM in a multiple chunk compilation
    • getCompileTime

      public SomSysClock getCompileTime()
      Returns the compile time.
      Returns:
      the compile time
    • getSourceTime

      public SomSysClock getSourceTime()
      Returns the source time.
      Returns:
      the source time
    • toDataType

      public DataType toDataType() throws DuplicateNameException, IOException
      Description copied from interface: StructConverter
      Returns a structure datatype representing the contents of the implementor of this interface.

      For example, given:

       class A {
           int foo;
           double bar;
       }
       

      The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

      Specified by:
      toDataType in interface StructConverter
      Returns:
      returns a structure datatype representing the implementor of this interface
      Throws:
      DuplicateNameException - when a datatype of the same name already exists
      IOException - if an IO-related error occurs
      See Also: