Interface CodeSingleComment
- All Superinterfaces:
CodeComment, CodeItem, CodeItemWithVariables, CodeStatement, Iterable<String>
- All Known Subinterfaces:
CodeInlineComment, CodeSingleLineComment
- Since:
- 1.0.0
- Author:
- hohwille
-
Field Summary
Fields inherited from interface CodeItem
DEFAULT_INDENT, DEFAULT_NEWLINE -
Method Summary
Methods inherited from interface CodeComment
getVariable, iteratorMethods inherited from interface CodeItem
getLanguage, getSourceCode, write, write, write, write, write, writeMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
getComment
String getComment()- Returns:
- the single comment (excluding any comment markup like "//", "/*", or "*/". Should not contain newline character(s).
-
getCommentLines
- Specified by:
getCommentLinesin interfaceCodeComment- Returns:
- the
Listof comment lines. Will always have thesize1in case ofCodeSingleLineComment. Each containedStringwill be the pure comment without leading comment prefix ("// ", "/* ", etc.).
-