Package ghidra.plugins.importer.batch
Class BatchGroup
java.lang.Object
ghidra.plugins.importer.batch.BatchGroup
A group of
LoadSpecs (possibly from different user added sources)
that have a common BatchSegregatingCriteria.
All the Apps must have the same set of LoadSpecs to be included in the same
BatchGroup.
Each BatchGroup has a single selected (BatchGroupLoadSpec) that applies
to all the Apps in the group.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBatchGroup(BatchSegregatingCriteria criteria) Creates a newBatchGroupkeyed on the specifiedcriteria. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ByteProvider provider, Collection<LoadSpec> loadSpecs, FSRL fsrl, UserAddedSourceInfo uasi) AddsLoadSpecs to this group.Returns the list of currentBatchGroup.BatchLoadConfigin this group.Returns theBatchSegregatingCriteriaof this group.Returns the selectedBatchGroupLoadSpecthat applies to the entireBatchGroup.booleanisEmpty()Returns true if there are no applications in this group.booleanReturns true if this group is 'enabled', which means that it has a selectedBatchGroupLoadSpecand the user has chosen to mark this group as importable.voidremoveDescendantsOf(FSRL fsrl) Removes any applications that are inside the specified container file.voidsetEnabled(boolean enabled) Sets the enabled status of this group.voidsetSelectedBatchGroupLoadSpec(BatchGroupLoadSpec selectedBatchGroupLoadSpec) Sets the currentBatchGroupLoadSpecfor the entire group of applications.intsize()Returns the number of applications in this group.toString()
-
Constructor Details
-
BatchGroup
Creates a newBatchGroupkeyed on the specifiedcriteria.- Parameters:
criteria-BatchSegregatingCriteriaof thisBatchGroup.
-
-
Method Details
-
add
public void add(ByteProvider provider, Collection<LoadSpec> loadSpecs, FSRL fsrl, UserAddedSourceInfo uasi) AddsLoadSpecs to this group.- Parameters:
provider- TheByteProvider.loadSpecs-LoadSpecs to add to this group.fsrl-FSRLof the application's import source file.uasi-UserAddedSourceInfo
-
getSelectedBatchGroupLoadSpec
Returns the selectedBatchGroupLoadSpecthat applies to the entireBatchGroup.- Returns:
- selected
BatchGroupLoadSpecthat applies to the entireBatchGroup.
-
setSelectedBatchGroupLoadSpec
Sets the currentBatchGroupLoadSpecfor the entire group of applications.- Parameters:
selectedBatchGroupLoadSpec-BatchGroupLoadSpecto set
-
isEnabled
public boolean isEnabled()Returns true if this group is 'enabled', which means that it has a selectedBatchGroupLoadSpecand the user has chosen to mark this group as importable.- Returns:
- boolean enabled status.
-
setEnabled
public void setEnabled(boolean enabled) Sets the enabled status of this group.- Parameters:
enabled- boolean
-
getCriteria
Returns theBatchSegregatingCriteriaof this group.- Returns:
BatchSegregatingCriteriaof this group.
-
size
public int size()Returns the number of applications in this group.- Returns:
- number of applications in this group.
-
isEmpty
public boolean isEmpty()Returns true if there are no applications in this group.- Returns:
- boolean true if there are no applications in this group.
-
getBatchLoadConfig
Returns the list of currentBatchGroup.BatchLoadConfigin this group.- Returns:
ListofBatchGroup.BatchLoadConfigBatchGroup.BatchLoadConfigwrappers.
-
removeDescendantsOf
Removes any applications that are inside the specified container file.- Parameters:
fsrl-FSRLof a container.
-
toString
-