Package ghidra.app.util.importer
Class LcsHintLoadSpecChooser
java.lang.Object
ghidra.app.util.importer.LcsHintLoadSpecChooser
- All Implemented Interfaces:
LoadSpecChooser
-
Field Summary
Fields inherited from interface ghidra.app.util.importer.LoadSpecChooser
CHOOSE_THE_FIRST_PREFERRED -
Constructor Summary
ConstructorsConstructorDescriptionLcsHintLoadSpecChooser(LanguageID languageId, CompilerSpecID compilerSpecId) Creates a newLcsHintLoadSpecChooser.LcsHintLoadSpecChooser(Language language, CompilerSpec compilerSpec) Creates a newLcsHintLoadSpecChooser. -
Method Summary
Modifier and TypeMethodDescriptionGets the desiredCompilerSpecIDassociated with this chooserGets the desiredLanguageIDassociated with this chooser
-
Constructor Details
-
LcsHintLoadSpecChooser
public LcsHintLoadSpecChooser(Language language, CompilerSpec compilerSpec) throws LanguageNotFoundException Creates a newLcsHintLoadSpecChooser.NOTE: It is assumed that the given
Languageis valid and it supports the givenCompilerSpec.- Parameters:
language- TheLanguageto use (should not be null)compilerSpec- TheCompilerSpecto use (if null default compiler spec will be used)- Throws:
LanguageNotFoundException- if there was a problem getting the language
-
LcsHintLoadSpecChooser
public LcsHintLoadSpecChooser(LanguageID languageId, CompilerSpecID compilerSpecId) throws LanguageNotFoundException Creates a newLcsHintLoadSpecChooser.NOTE: It is assumed that the given
LanguageIDis valid and it supports the givenCompilerSpecID.- Parameters:
languageId- TheLanguageIDto use (should not be null)compilerSpecId- TheCompilerSpecIDto use (if null default compiler spec will be used)- Throws:
LanguageNotFoundException- if there was a problem getting the language
-
-
Method Details
-
getLanguageId
Description copied from interface:LoadSpecChooserGets the desiredLanguageIDassociated with this chooser- Specified by:
getLanguageIdin interfaceLoadSpecChooser- Returns:
- the desired
LanguageIDassociated with this chooser, ornullto mean "any"
-
getCompilerSpecId
Description copied from interface:LoadSpecChooserGets the desiredCompilerSpecIDassociated with this chooser- Specified by:
getCompilerSpecIdin interfaceLoadSpecChooser- Returns:
- the desired
CompilerSpecIDassociated with this chooser, ornullto mean "any"
-
choose
Description copied from interface:LoadSpecChooser- Specified by:
choosein interfaceLoadSpecChooser- Parameters:
loaderMap- ALoaderMap- Returns:
- The chosen
LoadSpec, or null if one could not be found
-