Package ghidra.app.util.opinion
Class LoaderService
java.lang.Object
ghidra.app.util.opinion.LoaderService
Factory and utility methods for working with
Loader
s.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
<String> Gets all knownLoader
s' names.static LoaderMap
getAllSupportedLoadSpecs
(ByteProvider provider) Gets all supportedLoadSpec
s for loading the givenByteProvider
.getLoaderClassByName
(String name) static LoaderMap
getSupportedLoadSpecs
(ByteProvider provider, Predicate<Loader> loaderFilter) Gets all supportedLoadSpec
s for loading the givenByteProvider
.
-
Field Details
-
ACCEPT_ALL
-
-
Constructor Details
-
LoaderService
public LoaderService()
-
-
Method Details
-
getSupportedLoadSpecs
public static LoaderMap getSupportedLoadSpecs(ByteProvider provider, Predicate<Loader> loaderFilter) Gets all supportedLoadSpec
s for loading the givenByteProvider
.- Parameters:
provider
- TheByteProvider
to load.loaderFilter
- APredicate
that will filter out undesiredLoader
s.- Returns:
- All supported
LoadSpec
s in the form of aLoaderMap
.
-
getAllSupportedLoadSpecs
Gets all supportedLoadSpec
s for loading the givenByteProvider
.- Parameters:
provider
- TheByteProvider
to load.- Returns:
- All supported
LoadSpec
s in the form of aLoaderMap
.
-
getAllLoaderNames
Gets all knownLoader
s' names.- Returns:
- All known
Loader
s' names. TheLoader
names are sorted according to their correspondingLoader
snatural ordering
.
-
getLoaderClassByName
-