Class SleighLanguageProvider

java.lang.Object
ghidra.app.plugin.processors.sleigh.SleighLanguageProvider
All Implemented Interfaces:
LanguageProvider, ExtensionPoint

public class SleighLanguageProvider extends Object implements LanguageProvider
Searches resources for spec files and provides LanguageDescriptions for these specifications
  • Field Details

  • Method Details

    • getSleighLanguageProvider

      public static SleighLanguageProvider getSleighLanguageProvider()
    • hadLoadFailure

      public boolean hadLoadFailure()
      Specified by:
      hadLoadFailure in interface LanguageProvider
      Returns:
      true if one of more languages or language description failed to load properly.
    • isLanguageLoaded

      public boolean isLanguageLoaded(LanguageID languageId)
      Description copied from interface: LanguageProvider
      Returns true if the given language has been successfully loaded
      Specified by:
      isLanguageLoaded in interface LanguageProvider
      Parameters:
      languageId - the name of the language to be retrieved
      Returns:
      true if the given language has been successfully loaded
    • getLanguage

      public Language getLanguage(LanguageID languageId)
      Description copied from interface: LanguageProvider
      Returns the language with the given name or null if no language has that name
      Specified by:
      getLanguage in interface LanguageProvider
      Parameters:
      languageId - the name of the language to be retrieved
      Returns:
      the Language with the given name or null if not found
    • getLanguageDescriptions

      public LanguageDescription[] getLanguageDescriptions()
      Description copied from interface: LanguageProvider
      Returns a list of language descriptions provided by this provider
      Specified by:
      getLanguageDescriptions in interface LanguageProvider