Package ghidra.trace.database.program
Class DBTraceProgramViewChangeSet
java.lang.Object
ghidra.trace.database.program.DBTraceProgramViewChangeSet
- All Implemented Interfaces:
ChangeSet,AddressChangeSet,DataTypeChangeSet,DomainObjectChangeSet,FunctionTagChangeSet,ProgramChangeSet,ProgramTreeChangeSet,RegisterChangeSet,SymbolChangeSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AddressSetView addrSet) Adds the address set to the set addresses where changes occurred.voidAdds the range of addresses to the set addresses where changes occurred.voidaddRegisterRange(Address addr1, Address addr2) Adds the ranges of addresses that have register changes.voidcategoryAdded(long id) adds the data type category id to the list of categories that have been added.voidcategoryChanged(long id) adds the data type category id to the list of categories that have changed.voiddataTypeAdded(long id) Adds the data type ID to the list of added data types.voiddataTypeChanged(long id) Adds the dataType ID to the list of changed data types.Returns the address set of all addresses where the listing has changed.Gets an AddressSetCollection which contains the addressSets that track all the addresses where changes have occurred since the file was checked out.Gets an AddressSetCollection which contains the addressSets that track all the addresses where changes have occurred since the last save.long[]returns the list of category IDs that have been added.long[]returns the list of category IDs that have changed.long[]returns a list of data type IDs that have been added.long[]returns a list of data type IDs that have changed.long[]returns the list of program tree IDs that have been added.long[]returns the list of program tree IDs that have changed.Returns the set of Addresses containing register changes.long[]returns a list of data type source archive IDs that have been added.long[]returns a list of data type source archive IDs that have changed.long[]returns the list of symbols IDs that have been added.long[]returns the list of symbol IDs that have changed.long[]Returns a list of all tag ids that have been changed (edited/deleted).long[]Returns a list of all tag ids that have been created.booleanvoidprogramTreeAdded(long id) adds the program tree id to the list of trees that have been added.voidprogramTreeChanged(long id) adds the program tree id to the list of trees that have changed.voidsourceArchiveAdded(long id) Adds the data type source archive ID to the list of added data type archive IDs.voidsourceArchiveChanged(long id) Adds the data type source archive ID to the list of changed data type archive IDs.voidsymbolAdded(long id) adds the symbols id to the list of symbols that have been added.voidsymbolChanged(long id) adds the symbol id to the list of symbols that have changed.voidtagChanged(long id) Indicates that a tag has been changed (edited/deleted).voidtagCreated(long id) Indicates that a tag has been created.
-
Constructor Details
-
DBTraceProgramViewChangeSet
public DBTraceProgramViewChangeSet()
-
-
Method Details
-
hasChanges
public boolean hasChanges()- Specified by:
hasChangesin interfaceDomainObjectChangeSet
-
getAddressSet
Description copied from interface:AddressChangeSetReturns the address set of all addresses where the listing has changed.- Specified by:
getAddressSetin interfaceAddressChangeSet
-
add
Description copied from interface:AddressChangeSetAdds the address set to the set addresses where changes occurred.- Specified by:
addin interfaceAddressChangeSet- Parameters:
addrSet- the set of addresses to add as changes.
-
addRange
Description copied from interface:AddressChangeSetAdds the range of addresses to the set addresses where changes occurred.- Specified by:
addRangein interfaceAddressChangeSet- Parameters:
addr1- the first address in the rangeaddr2- the last address in the range. (inclusive)
-
addRegisterRange
Description copied from interface:RegisterChangeSetAdds the ranges of addresses that have register changes.- Specified by:
addRegisterRangein interfaceRegisterChangeSet- Parameters:
addr1- the first address in the range.addr2- the last address in the range.
-
getRegisterAddressSet
Description copied from interface:RegisterChangeSetReturns the set of Addresses containing register changes.- Specified by:
getRegisterAddressSetin interfaceRegisterChangeSet
-
dataTypeChanged
public void dataTypeChanged(long id) Description copied from interface:DataTypeChangeSetAdds the dataType ID to the list of changed data types.- Specified by:
dataTypeChangedin interfaceDataTypeChangeSet
-
dataTypeAdded
public void dataTypeAdded(long id) Description copied from interface:DataTypeChangeSetAdds the data type ID to the list of added data types.- Specified by:
dataTypeAddedin interfaceDataTypeChangeSet- Parameters:
id-
-
getDataTypeChanges
public long[] getDataTypeChanges()Description copied from interface:DataTypeChangeSetreturns a list of data type IDs that have changed.- Specified by:
getDataTypeChangesin interfaceDataTypeChangeSet
-
getDataTypeAdditions
public long[] getDataTypeAdditions()Description copied from interface:DataTypeChangeSetreturns a list of data type IDs that have been added.- Specified by:
getDataTypeAdditionsin interfaceDataTypeChangeSet
-
categoryChanged
public void categoryChanged(long id) Description copied from interface:DataTypeChangeSetadds the data type category id to the list of categories that have changed.- Specified by:
categoryChangedin interfaceDataTypeChangeSet
-
categoryAdded
public void categoryAdded(long id) Description copied from interface:DataTypeChangeSetadds the data type category id to the list of categories that have been added.- Specified by:
categoryAddedin interfaceDataTypeChangeSet
-
getCategoryChanges
public long[] getCategoryChanges()Description copied from interface:DataTypeChangeSetreturns the list of category IDs that have changed.- Specified by:
getCategoryChangesin interfaceDataTypeChangeSet
-
getCategoryAdditions
public long[] getCategoryAdditions()Description copied from interface:DataTypeChangeSetreturns the list of category IDs that have been added.- Specified by:
getCategoryAdditionsin interfaceDataTypeChangeSet
-
sourceArchiveChanged
public void sourceArchiveChanged(long id) Description copied from interface:DataTypeChangeSetAdds the data type source archive ID to the list of changed data type archive IDs.- Specified by:
sourceArchiveChangedin interfaceDataTypeChangeSet
-
sourceArchiveAdded
public void sourceArchiveAdded(long id) Description copied from interface:DataTypeChangeSetAdds the data type source archive ID to the list of added data type archive IDs.- Specified by:
sourceArchiveAddedin interfaceDataTypeChangeSet- Parameters:
id- the data type source archive ID
-
getSourceArchiveChanges
public long[] getSourceArchiveChanges()Description copied from interface:DataTypeChangeSetreturns a list of data type source archive IDs that have changed.- Specified by:
getSourceArchiveChangesin interfaceDataTypeChangeSet
-
getSourceArchiveAdditions
public long[] getSourceArchiveAdditions()Description copied from interface:DataTypeChangeSetreturns a list of data type source archive IDs that have been added.- Specified by:
getSourceArchiveAdditionsin interfaceDataTypeChangeSet
-
programTreeChanged
public void programTreeChanged(long id) Description copied from interface:ProgramTreeChangeSetadds the program tree id to the list of trees that have changed.- Specified by:
programTreeChangedin interfaceProgramTreeChangeSet
-
programTreeAdded
public void programTreeAdded(long id) Description copied from interface:ProgramTreeChangeSetadds the program tree id to the list of trees that have been added.- Specified by:
programTreeAddedin interfaceProgramTreeChangeSet
-
getProgramTreeChanges
public long[] getProgramTreeChanges()Description copied from interface:ProgramTreeChangeSetreturns the list of program tree IDs that have changed.- Specified by:
getProgramTreeChangesin interfaceProgramTreeChangeSet
-
getProgramTreeAdditions
public long[] getProgramTreeAdditions()Description copied from interface:ProgramTreeChangeSetreturns the list of program tree IDs that have been added.- Specified by:
getProgramTreeAdditionsin interfaceProgramTreeChangeSet
-
symbolChanged
public void symbolChanged(long id) Description copied from interface:SymbolChangeSetadds the symbol id to the list of symbols that have changed.- Specified by:
symbolChangedin interfaceSymbolChangeSet
-
symbolAdded
public void symbolAdded(long id) Description copied from interface:SymbolChangeSetadds the symbols id to the list of symbols that have been added.- Specified by:
symbolAddedin interfaceSymbolChangeSet
-
getSymbolChanges
public long[] getSymbolChanges()Description copied from interface:SymbolChangeSetreturns the list of symbol IDs that have changed.- Specified by:
getSymbolChangesin interfaceSymbolChangeSet
-
getSymbolAdditions
public long[] getSymbolAdditions()Description copied from interface:SymbolChangeSetreturns the list of symbols IDs that have been added.- Specified by:
getSymbolAdditionsin interfaceSymbolChangeSet
-
tagChanged
public void tagChanged(long id) Description copied from interface:FunctionTagChangeSetIndicates that a tag has been changed (edited/deleted).- Specified by:
tagChangedin interfaceFunctionTagChangeSet- Parameters:
id- the id of the tag (fromFunctionTagAdapter)
-
tagCreated
public void tagCreated(long id) Description copied from interface:FunctionTagChangeSetIndicates that a tag has been created.- Specified by:
tagCreatedin interfaceFunctionTagChangeSet- Parameters:
id- the id of the tag (fromFunctionTagAdapter)
-
getTagChanges
public long[] getTagChanges()Description copied from interface:FunctionTagChangeSetReturns a list of all tag ids that have been changed (edited/deleted).- Specified by:
getTagChangesin interfaceFunctionTagChangeSet- Returns:
- the list of tag ids (from
FunctionTagAdapter)
-
getTagCreations
public long[] getTagCreations()Description copied from interface:FunctionTagChangeSetReturns a list of all tag ids that have been created.- Specified by:
getTagCreationsin interfaceFunctionTagChangeSet- Returns:
- the list of tag ids (from
FunctionTagAdapter)
-
getAddressSetCollectionSinceLastSave
Description copied from interface:ProgramChangeSetGets an AddressSetCollection which contains the addressSets that track all the addresses where changes have occurred since the last save.- Specified by:
getAddressSetCollectionSinceLastSavein interfaceProgramChangeSet- Returns:
- AddressSetCollection containing all addresses that changed since the last save.
-
getAddressSetCollectionSinceCheckout
Description copied from interface:ProgramChangeSetGets an AddressSetCollection which contains the addressSets that track all the addresses where changes have occurred since the file was checked out. If the file is not versioned, this AddressSetCollection will be empty.- Specified by:
getAddressSetCollectionSinceCheckoutin interfaceProgramChangeSet- Returns:
- AddressSetCollection containing all addresses that changed since the program was checked out.
-