Package ghidra.program.util
Class CommentType
- java.lang.Object
-
- ghidra.program.util.CommentType
-
public class CommentType extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommentType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCommentType(CodeUnit cu, ProgramLocation loc, int defaultCommentType)
Get the comment type from the current location.static boolean
isCommentAllowed(CodeUnit cu, ProgramLocation loc)
-
-
-
Method Detail
-
getCommentType
public static int getCommentType(CodeUnit cu, ProgramLocation loc, int defaultCommentType)
Get the comment type from the current location. If the cursor is not over a comment, then just return EOL as the default.- Parameters:
cu
-loc
-defaultCommentType
-- Returns:
- comment type
-
isCommentAllowed
public static boolean isCommentAllowed(CodeUnit cu, ProgramLocation loc)
-
-