Package ghidra.plugins.importer.batch
Class BatchGroup
- java.lang.Object
-
- ghidra.plugins.importer.batch.BatchGroup
-
public class BatchGroup extends java.lang.ObjectA group ofLoadSpecs (possibly from different user added sources) that have a commonBatchSegregatingCriteria.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 Modifier and Type Class Description static classBatchGroup.BatchLoadConfig
-
Constructor Summary
Constructors Constructor Description BatchGroup(BatchSegregatingCriteria criteria)Creates a newBatchGroupkeyed on the specifiedcriteria.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ByteProvider provider, java.util.Collection<LoadSpec> loadSpecs, FSRL fsrl, UserAddedSourceInfo uasi)AddsLoadSpecs to this group.java.util.List<BatchGroup.BatchLoadConfig>getBatchLoadConfig()Returns the list of currentBatchGroup.BatchLoadConfigin this group.BatchSegregatingCriteriagetCriteria()Returns theBatchSegregatingCriteriaof this group.BatchGroupLoadSpecgetSelectedBatchGroupLoadSpec()Returns the selectedBatchGroupLoadSpecthat applies to the entireBatchGroup.booleanisEmpty()Returns true if there are no applications in this group.booleanisEnabled()Returns 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.java.lang.StringtoString()
-
-
-
Constructor Detail
-
BatchGroup
public BatchGroup(BatchSegregatingCriteria criteria)
Creates a newBatchGroupkeyed on the specifiedcriteria.- Parameters:
criteria-BatchSegregatingCriteriaof thisBatchGroup.
-
-
Method Detail
-
add
public void add(ByteProvider provider, java.util.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
public BatchGroupLoadSpec getSelectedBatchGroupLoadSpec()
Returns the selectedBatchGroupLoadSpecthat applies to the entireBatchGroup.- Returns:
- selected
BatchGroupLoadSpecthat applies to the entireBatchGroup.
-
setSelectedBatchGroupLoadSpec
public void setSelectedBatchGroupLoadSpec(BatchGroupLoadSpec selectedBatchGroupLoadSpec)
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
public BatchSegregatingCriteria 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
public java.util.List<BatchGroup.BatchLoadConfig> getBatchLoadConfig()
Returns the list of currentBatchGroup.BatchLoadConfigin this group.- Returns:
ListofBatchGroup.BatchLoadConfigBatchGroup.BatchLoadConfigwrappers.
-
removeDescendantsOf
public void removeDescendantsOf(FSRL fsrl)
Removes any applications that are inside the specified container file.- Parameters:
fsrl-FSRLof a container.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-