Package ghidra.app.util.opinion
Class LoaderService
- java.lang.Object
-
- ghidra.app.util.opinion.LoaderService
-
public class LoaderService extends java.lang.Object
Factory and utility methods for working withLoader
s.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Predicate<Loader>
ACCEPT_ALL
-
Constructor Summary
Constructors Constructor Description LoaderService()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<java.lang.String>
getAllLoaderNames()
Gets all knownLoader
s' names.static LoaderMap
getAllSupportedLoadSpecs(ByteProvider provider)
Gets all supportedLoadSpec
s for loading the givenByteProvider
.static java.lang.Class<? extends Loader>
getLoaderClassByName(java.lang.String name)
static LoaderMap
getSupportedLoadSpecs(ByteProvider provider, java.util.function.Predicate<Loader> loaderFilter)
Gets all supportedLoadSpec
s for loading the givenByteProvider
.
-
-
-
Field Detail
-
ACCEPT_ALL
public static java.util.function.Predicate<Loader> ACCEPT_ALL
-
-
Method Detail
-
getSupportedLoadSpecs
public static LoaderMap getSupportedLoadSpecs(ByteProvider provider, java.util.function.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
public static LoaderMap getAllSupportedLoadSpecs(ByteProvider provider)
Gets all supportedLoadSpec
s for loading the givenByteProvider
.- Parameters:
provider
- TheByteProvider
to load.- Returns:
- All supported
LoadSpec
s in the form of aLoaderMap
.
-
getAllLoaderNames
public static java.util.Collection<java.lang.String> getAllLoaderNames()
Gets all knownLoader
s' names.- Returns:
- All known
Loader
s' names. TheLoader
names are sorted according to their correspondingLoader
snatural ordering
.
-
-