Package ghidra.app.util.opinion
Class LoaderService
- java.lang.Object
-
- ghidra.app.util.opinion.LoaderService
-
public class LoaderService extends java.lang.ObjectFactory and utility methods for working withLoaders.
-
-
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 knownLoaders' names.static java.util.Map<Loader,java.util.Collection<LoadSpec>>getAllSupportedLoadSpecs(ByteProvider provider)Gets all supportedLoadSpecs 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 supportedLoadSpecs 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 supportedLoadSpecs for loading the givenByteProvider.
-
getAllSupportedLoadSpecs
public static java.util.Map<Loader,java.util.Collection<LoadSpec>> getAllSupportedLoadSpecs(ByteProvider provider)
Gets all supportedLoadSpecs for loading the givenByteProvider.- Parameters:
provider- TheByteProviderto load.- Returns:
- A
MapofLoaders to their respectiveLoadSpecs. It is safe to assume that everyLoaderin theMapwill have at least oneLoadSpec.
-
getAllLoaderNames
public static java.util.Collection<java.lang.String> getAllLoaderNames()
Gets all knownLoaders' names.- Returns:
- All known
Loaders' names.
-
-