Class DebugInfoProviderRegistry
java.lang.Object
ghidra.app.util.bin.format.dwarf.external.DebugInfoProviderRegistry
List of
DebugInfoProvider types that can be saved / restored from a configuration string.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, DebugInfoProviderCreatorContext context) Creates aDebugFileProviderusing the specified name string.static DebugInfoProviderRegistrynewContext(Program program) Creates a newcontext.voidregister(Predicate<String> testFunc, ghidra.app.util.bin.format.dwarf.external.DebugInfoProviderRegistry.DebugInfoProviderCreator createFunc) Adds aDebugFileProviderto this registry.
-
Constructor Details
-
DebugInfoProviderRegistry
public DebugInfoProviderRegistry()Creates a new registry
-
-
Method Details
-
getInstance
-
register
public void register(Predicate<String> testFunc, ghidra.app.util.bin.format.dwarf.external.DebugInfoProviderRegistry.DebugInfoProviderCreator createFunc) Adds aDebugFileProviderto this registry.- Parameters:
testFunc- aPredicatethat tests a name string, returning true if the string specifies the provider in questioncreateFunc- aDebugInfoProviderRegistry.DebugInfoProviderCreatorthat will create a newDebugFileProviderinstance given a name string and acontext
-
newContext
Creates a newcontext.- Parameters:
program-Program- Returns:
- new
DebugInfoProviderCreatorContext
-
create
Creates aDebugFileProviderusing the specified name string.- Parameters:
name- string previously returned byDebugInfoProvider.getName()context- acontext- Returns:
- new
DebugFileProviderinstance, or null if there are no registered matching providers
-