Package ghidra.app.cmd.comments
Class AppendCommentCmd
java.lang.Object
ghidra.app.cmd.comments.AppendCommentCmd
- All Implemented Interfaces:
Command
Command to append a specific type of comment on a code unit.
-
Constructor Summary
ConstructorsConstructorDescriptionAppendCommentCmd(Address addr, int commentType, String comment, String separator) Construct command -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyTo(DomainObject obj) Applies the command to the given domain object.getName()Returns the name of this command.Returns the status message indicating the status of the command.
-
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: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- Returns:
- reason for failure, or null if the status of the command was successful
- See Also:
-