Class DWARFAbbreviation


  • public class DWARFAbbreviation
    extends java.lang.Object
    This class represents the 'schema' for a DWARF DIE record.

    A raw DWARF DIE record specifies its abbreviation code (pointing to an instance of this class) and the corresponding DWARFAbbreviation instance has the information about how the raw DIE is laid out.

    • Constructor Detail

      • DWARFAbbreviation

        public DWARFAbbreviation​(int abbreviationCode,
                                 int tag,
                                 boolean hasChildren,
                                 DWARFAttributeSpecification[] attributes)
    • Method Detail

      • toString

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

        public int getAbbreviationCode()
        Get the abbreviation code.
        Returns:
        the abbreviation code
      • getTag

        public int getTag()
        Get the tag value.
        Returns:
        the tag value
      • hasChildren

        public boolean hasChildren()
        Checks to see if this abbreviation has any DIE children.
        Returns:
        true if this abbreviation has DIE children
      • getAttributes

        public DWARFAttributeSpecification[] getAttributes()
        Return a live list of the attributes.
        Returns:
        list of attributes
      • getAttributeCount

        public int getAttributeCount()
      • getAttributeAt

        public DWARFAttributeSpecification getAttributeAt​(int index)
        Get the attribute at the given index.
        Parameters:
        index - index of the attribute
        Returns:
        attribute specification
      • findAttribute

        public DWARFAttributeSpecification findAttribute​(int attribute)
        Get the attribute with the given attribute key.
        Parameters:
        attribute - attribute key
        Returns:
        attribute specification