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
ConstructorDescriptionAppendCommentCmd
(Address addr, int commentType, String comment, String separator) Construct command -
Method Summary
-
Constructor Details
-
AppendCommentCmd
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.
-
-
Method Details
-
getName
Description copied from interface:Command
Returns the name of this command. -
applyTo
Description copied from interface:Command
Applies the command to the given domain object. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand<Program>
- Returns:
- reason for failure, or null if the status of the command was successful
-