Package ghidra.app.util.opinion
Record Class Loader.ImporterSettings
java.lang.Object
java.lang.Record
ghidra.app.util.opinion.Loader.ImporterSettings
- Record Components:
provider- The bytes to load.importName- The name for the primaryLoadedDomainObject. Path information that appears at the beginning the name will be appended to theprojectRootPathduring thesaving process.project- TheProject. Loaders can use this to take advantage of existingDomainFolders andDomainFiles to do custom behaviors such as loading libraries. AProjectis also required during thesaving process. Could benullif there is no project.projectRootPath- The project folder path that allLoadedDomainObjects will besavedrelative to. Ifnull, "/" will be used.mirrorFsLayout- True if the filesystem layout should be mirrored whensaving; otherwise, falseloadSpec- TheLoadSpecto use during load.options- The load options.consumer- A reference to the object "consuming" the returnedLoadResults, used to ensure the underlyingPrograms are only closed when every consumer is done with it (seeLoadResults.close()).log- The message log.monitor- A task monitor.
- Enclosing interface:
Loader
public static record Loader.ImporterSettings(ByteProvider provider, String importName, Project project, String projectRootPath, boolean mirrorFsLayout, LoadSpec loadSpec, List<Option> options, Object consumer, MessageLog log, TaskMonitor monitor)
extends Record
A
Loader configuration-
Constructor Summary
ConstructorsConstructorDescriptionImporterSettings(ByteProvider provider, String importName, Project project, String projectRootPath, boolean mirrorFsLayout, LoadSpec loadSpec, List<Option> options, Object consumer, MessageLog log, TaskMonitor monitor) Creates an instance of aImporterSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsumer()Returns the value of theconsumerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimportNamerecord component.Returns The name portion of theimportName, stripping off any leading path information that may be present.Returns The path portion of theimportNameif present, stripping off the trailing name (could be the empty string).loadSpec()Returns the value of theloadSpecrecord component.log()Returns the value of thelogrecord component.booleanReturns the value of themirrorFsLayoutrecord component.monitor()Returns the value of themonitorrecord component.options()Returns the value of theoptionsrecord component.project()Returns the value of theprojectrecord component.Returns the value of theprojectRootPathrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImporterSettings
public ImporterSettings(ByteProvider provider, String importName, Project project, String projectRootPath, boolean mirrorFsLayout, LoadSpec loadSpec, List<Option> options, Object consumer, MessageLog log, TaskMonitor monitor) Creates an instance of aImporterSettingsrecord class.- Parameters:
provider- the value for theproviderrecord componentimportName- the value for theimportNamerecord componentproject- the value for theprojectrecord componentprojectRootPath- the value for theprojectRootPathrecord componentmirrorFsLayout- the value for themirrorFsLayoutrecord componentloadSpec- the value for theloadSpecrecord componentoptions- the value for theoptionsrecord componentconsumer- the value for theconsumerrecord componentlog- the value for thelogrecord componentmonitor- the value for themonitorrecord component
-
-
Method Details
-
importNameOnly
Returns The name portion of theimportName, stripping off any leading path information that may be present.- Returns:
- The name portion of the
importName, stripping off any leading path information that may be present
-
importPathOnly
Returns The path portion of theimportNameif present, stripping off the trailing name (could be the empty string).- Returns:
- The path portion of the
importNameif present, stripping off the trailing name (could be the empty string)
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
importName
Returns the value of theimportNamerecord component.- Returns:
- the value of the
importNamerecord component
-
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
projectRootPath
Returns the value of theprojectRootPathrecord component.- Returns:
- the value of the
projectRootPathrecord component
-
mirrorFsLayout
public boolean mirrorFsLayout()Returns the value of themirrorFsLayoutrecord component.- Returns:
- the value of the
mirrorFsLayoutrecord component
-
loadSpec
Returns the value of theloadSpecrecord component.- Returns:
- the value of the
loadSpecrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
consumer
Returns the value of theconsumerrecord component.- Returns:
- the value of the
consumerrecord component
-
log
Returns the value of thelogrecord component.- Returns:
- the value of the
logrecord component
-
monitor
Returns the value of themonitorrecord component.- Returns:
- the value of the
monitorrecord component
-