Package ghidra.app.util.importer
Class AutoImporter
- java.lang.Object
-
- ghidra.app.util.importer.AutoImporter
-
public final class AutoImporter extends java.lang.Object
Utility methods to do imports automatically (without requiring user interaction).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Program
importAsBinary(ByteProvider bytes, DomainFolder programFolder, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static Program
importAsBinary(java.io.File file, DomainFolder programFolder, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static Program
importByLookingForLcs(java.io.File file, DomainFolder programFolder, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static Program
importByUsingBestGuess(ByteProvider provider, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static Program
importByUsingBestGuess(java.io.File file, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static Program
importByUsingSpecificLoaderClass(java.io.File file, DomainFolder programFolder, java.lang.Class<? extends Loader> loaderClass, java.util.List<Pair<java.lang.String,java.lang.String>> loaderArgs, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static Program
importByUsingSpecificLoaderClassAndLcs(java.io.File file, DomainFolder programFolder, java.lang.Class<? extends Loader> loaderClass, java.util.List<Pair<java.lang.String,java.lang.String>> loaderArgs, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor)
static java.util.List<Program>
importFresh(ByteProvider provider, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor, java.util.function.Predicate<Loader> loaderFilter, LoadSpecChooser loadSpecChooser, java.lang.String programNameOverride, OptionChooser optionChooser, MultipleProgramsStrategy multipleProgramsStrategy)
static java.util.List<Program>
importFresh(java.io.File file, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor, java.util.function.Predicate<Loader> loaderFilter, LoadSpecChooser loadSpecChooser, java.lang.String programNameOverride, OptionChooser optionChooser, MultipleProgramsStrategy multipleProgramsStrategy)
-
-
-
Method Detail
-
importByUsingBestGuess
public static Program importByUsingBestGuess(java.io.File file, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importByUsingBestGuess
public static Program importByUsingBestGuess(ByteProvider provider, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importByUsingSpecificLoaderClass
public static Program importByUsingSpecificLoaderClass(java.io.File file, DomainFolder programFolder, java.lang.Class<? extends Loader> loaderClass, java.util.List<Pair<java.lang.String,java.lang.String>> loaderArgs, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importByLookingForLcs
public static Program importByLookingForLcs(java.io.File file, DomainFolder programFolder, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importByUsingSpecificLoaderClassAndLcs
public static Program importByUsingSpecificLoaderClassAndLcs(java.io.File file, DomainFolder programFolder, java.lang.Class<? extends Loader> loaderClass, java.util.List<Pair<java.lang.String,java.lang.String>> loaderArgs, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importAsBinary
public static Program importAsBinary(java.io.File file, DomainFolder programFolder, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importAsBinary
public static Program importAsBinary(ByteProvider bytes, DomainFolder programFolder, Language language, CompilerSpec compilerSpec, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importFresh
public static java.util.List<Program> importFresh(java.io.File file, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor, java.util.function.Predicate<Loader> loaderFilter, LoadSpecChooser loadSpecChooser, java.lang.String programNameOverride, OptionChooser optionChooser, MultipleProgramsStrategy multipleProgramsStrategy) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
importFresh
public static java.util.List<Program> importFresh(ByteProvider provider, DomainFolder programFolder, java.lang.Object consumer, MessageLog messageLog, TaskMonitor monitor, java.util.function.Predicate<Loader> loaderFilter, LoadSpecChooser loadSpecChooser, java.lang.String programNameOverride, OptionChooser optionChooser, MultipleProgramsStrategy multipleProgramsStrategy) throws java.io.IOException, CancelledException, DuplicateNameException, InvalidNameException, VersionException
- Throws:
java.io.IOException
CancelledException
DuplicateNameException
InvalidNameException
VersionException
-
-