Class ElfExtension

    • Constructor Detail

      • ElfExtension

        public ElfExtension()
    • Method Detail

      • canHandle

        public abstract boolean canHandle​(ElfHeader elf)
        Description copied from class: ElfLoadAdapter
        Check if this extension can handle the specified elf header. If this method returns true, this extension will be used to obtain extended types definitions and to perform additional load processing.
        Overrides:
        canHandle in class ElfLoadAdapter
        Parameters:
        elf - elf header
        Returns:
        true if this extension should be used when loading the elf image which corresponds to the specified header.
      • canHandle

        public abstract boolean canHandle​(ElfLoadHelper elfLoadHelper)
        Description copied from class: ElfLoadAdapter
        Check if this extension can handle the specified elf image. This method can provide a more accurate check based upon the actual language utilized. While the ELF header may have stipulated a specific processor via the machine-id, a completely different and incompatible language may have been used.
        Overrides:
        canHandle in class ElfLoadAdapter
        Parameters:
        elfLoadHelper - elf header
        Returns:
        true if this extension can properly support the ELF header and the current program/language.
      • getDataTypeSuffix

        public abstract java.lang.String getDataTypeSuffix()
        Description copied from class: ElfLoadAdapter
        Return the data type naming suffix which should be used when creating types derived from data supplied by this extension.
        Overrides:
        getDataTypeSuffix in class ElfLoadAdapter
        Returns:
        type naming suffix or null