Package ghidra.app.cmd.comments
Class AppendCommentCmd
java.lang.Object
ghidra.app.cmd.comments.AppendCommentCmd
Command to append a specific type of comment on a code unit.
-
Constructor Summary
ConstructorsConstructorDescriptionAppendCommentCmd(Address addr, int commentType, String comment, String separator) Deprecated, for removal: This API element is subject to removal in a future version.AppendCommentCmd(Address addr, CommentType commentType, String comment, String separator) Construct command -
Method Summary
-
Constructor Details
-
AppendCommentCmd
@Deprecated(forRemoval=true, since="11.4") public AppendCommentCmd(Address addr, int commentType, String comment, String separator) Deprecated, for removal: This API element is subject to removal in a future version.Construct command- Parameters:
addr- address of code unit where comment will be placedcommentType- valid comment type (seeCodeUnit.EOL_COMMENT,CodeUnit.PLATE_COMMENT, etc)comment- comment for code unit, should not be nullseparator- characters to separate the new comment from the previous comment when concatenating.
-
AppendCommentCmd
Construct command- Parameters:
addr- address of code unit where comment will be placedcommentType- comment typecomment- comment for code unit, should not be nullseparator- characters to separate the new comment from the previous comment when concatenating.
-
-
Method Details
-
getName
Description copied from interface:CommandReturns the name of this command. -
applyTo
Description copied from interface:CommandApplies the command to the given domain object. -
getStatusMsg
Description copied from interface:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand<Program>- Returns:
- reason for failure, or null if the status of the command was successful
-