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 java.util.Map<Loader,java.util.Collection<LoadSpec>>
getAllSupportedLoadSpecs(ByteProvider provider)
Gets all supportedLoadSpec
s for loading the givenByteProvider
.static java.lang.Class<? extends Loader>
getLoaderClassByName(java.lang.String name)
static java.util.Map<Loader,java.util.Collection<LoadSpec>>
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 java.util.Map<Loader,java.util.Collection<LoadSpec>> getSupportedLoadSpecs(ByteProvider provider, java.util.function.Predicate<Loader> loaderFilter)
Gets all supportedLoadSpec
s for loading the givenByteProvider
.
-
getAllSupportedLoadSpecs
public static java.util.Map<Loader,java.util.Collection<LoadSpec>> getAllSupportedLoadSpecs(ByteProvider provider)
Gets all supportedLoadSpec
s for loading the givenByteProvider
.- Parameters:
provider
- TheByteProvider
to load.- Returns:
- A
Map
ofLoader
s to their respectiveLoadSpec
s. It is safe to assume that everyLoader
in theMap
will have at least oneLoadSpec
.
-
getAllLoaderNames
public static java.util.Collection<java.lang.String> getAllLoaderNames()
Gets all knownLoader
s' names.- Returns:
- All known
Loader
s' names.
-
-