Interface CodeSingleComment

All Superinterfaces:
CodeComment, CodeItem, CodeItemWithVariables, CodeStatement, Iterable<String>
All Known Subinterfaces:
CodeInlineComment, CodeSingleLineComment

public interface CodeSingleComment extends CodeComment
CodeComment for a single comment such as CodeSingleLineComment or CodeInlineComment.
Since:
1.0.0
Author:
hohwille
  • Method Details

    • getComment

      String getComment()
      Returns:
      the single comment (excluding any comment markup like "//", "/*", or "*/". Should not contain newline character(s).
    • getCommentLines

      default List<String> getCommentLines()
      Specified by:
      getCommentLines in interface CodeComment
      Returns:
      the List of comment lines. Will always have the size 1 in case of CodeSingleLineComment. Each contained String will be the pure comment without leading comment prefix ("// ", "/* ", etc.).