Package ghidra.program.util
Class CommentChangeRecord
java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
ghidra.program.util.ProgramChangeRecord
ghidra.program.util.CommentChangeRecord
- All Implemented Interfaces:
Serializable
Change record for comment changes
- See Also:
-
Constructor Summary
ConstructorDescriptionCommentChangeRecord
(int commentType, Address address, String oldValue, String newValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the comment type as defined inCodeUnit
.Returns the new comment or null if this is a result of deleting the comment.Returns the previous comment or null if there was no previous comment.Methods inherited from class ghidra.program.util.ProgramChangeRecord
getEnd, getObject, getStart, toString
Methods inherited from class ghidra.framework.model.DomainObjectChangeRecord
getEventType, getNewValue, getOldValue
-
Constructor Details
-
CommentChangeRecord
Constructor- Parameters:
commentType
- the type of comment (as defined inCodeUnit
)address
- the address of the comment changeoldValue
- the old comment (may be null for a new comment)newValue
- the new comment (may be null if the comment was deleted)
-
-
Method Details
-
getCommentType
public int getCommentType()Returns the comment type as defined inCodeUnit
.- Returns:
- the comment type
-
getOldComment
Returns the previous comment or null if there was no previous comment.- Returns:
- the previous comment or null if there was no previous comment.
-
getNewComment
Returns the new comment or null if this is a result of deleting the comment.- Returns:
- the new comment or null if this is a result of deleting the comment
-