TextLine.BlankLine, TextLine.HRLine, TextLine.StringLine| Constructor and Description |
|---|
StringLine(String line) |
StringLine(String line,
boolean wrap) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBlockComment(PrintFormat format,
boolean startComment,
boolean endComment)
Within a comment block, write this single line as a block comment.
|
String |
getLine(PrintFormat format) |
String |
getLineComment(PrintFormat format)
Write this single line as a line comment.
|
List<String> |
getWrappedBlockComment(PrintFormat format,
boolean startComment,
boolean endComment)
Within a comment block, write this line and wrap it if it is too long.
|
List<String> |
getWrappedLine(PrintFormat format)
Wrap a line to the max line length.
|
List<String> |
getWrappedLineComment(PrintFormat format)
Wrap a line and format it as a line comment (not a block comment)
Calling this on a format that doesn't have line comments (eg xml)
results in a line that is not a comment.
|
public StringLine(String line, boolean wrap)
public StringLine(String line)
public String getLine(PrintFormat format)
public String getLineComment(PrintFormat format)
TextLinepublic String getBlockComment(PrintFormat format, boolean startComment, boolean endComment)
TextLinestartComment - If true, this is the first block line, so write block start.endComment - If true, this is the last block line, so write block end.public List<String> getWrappedLine(PrintFormat format)
TextLinepublic List<String> getWrappedLineComment(PrintFormat format)
TextLinepublic List<String> getWrappedBlockComment(PrintFormat format, boolean startComment, boolean endComment)
TextLinestartComment - If true, this is the first block line, so write block start.endComment - If true, this is the last block line, so write block end.Copyright © 2022. All rights reserved.