Interface CodeBlockComment
- All Superinterfaces:
CodeComment, CodeItem, CodeItemWithVariables, CodeStatement, Iterable<String>
CodeComment representing a multi-line comment. Example/* * This is the first line of the comment. * There can also be more lines. */
- 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
-
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.).
-