Package ghidra.app.util.importer

# Class LcsHintLoadSpecChooser

java.lang.Object
ghidra.app.util.importer.LcsHintLoadSpecChooser

All Implemented Interfaces:
  `LoadSpecChooser`

public class LcsHintLoadSpecChooser extends Object implements LoadSpecChooser
Chooses a `LoadSpec` for a `Loader` to use based on a provided `Language` and `CompilerSpec`.

- ## Field Summary

  ### Fields inherited from interface ghidra.app.util.importer.LoadSpecChooser

  `CHOOSE_THE_FIRST_PREFERRED`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LcsHintLoadSpecChooser(Language language, CompilerSpec compilerSpec)`
  Creates a new `LcsHintLoadSpecChooser`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `LoadSpec`
  `choose(LoaderMap loaderMap)`
  Chooses a `LoadSpec` for a `Loader` to use based on some criteria

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LcsHintLoadSpecChooser

    public LcsHintLoadSpecChooser(Language language, CompilerSpec compilerSpec)
    Creates a new `LcsHintLoadSpecChooser`.

    NOTE: It is assumed that the given `Language` is valid and it supports the given `CompilerSpec`.

    Parameters:
      `language` - The `Language` to use (should not be null)
      `compilerSpec` - The `CompilerSpec` to use (f null default compiler spec will be used)

- ## Method Details

  - ### choose

    public LoadSpec choose(LoaderMap loaderMap)
    Description copied from interface: `LoadSpecChooser`
    Chooses a `LoadSpec` for a `Loader` to use based on some criteria
    Specified by:
      `choose` in interface `LoadSpecChooser`
    Parameters:
      `loaderMap` - A `LoaderMap`
    Returns:
      The chosen `LoadSpec`, or null if one could not be found