Class CommentChangeRecord

All Implemented Interfaces:
Serializable

public class CommentChangeRecord extends ProgramChangeRecord
Change record for comment changes
See Also:
  • Constructor Details

    • CommentChangeRecord

      public CommentChangeRecord(int commentType, Address address, String oldValue, String newValue)
      Constructor
      Parameters:
      commentType - the type of comment (as defined in CodeUnit)
      address - the address of the comment change
      oldValue - 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 in CodeUnit.
      Returns:
      the comment type
    • getOldComment

      public String 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

      public String 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