public static class Format.Comment extends Format.MayBreak
Format.FormatPrinter directly.
This has only one field for this purpose, thus Comments can NOT BE NESTED.
This is checked not before trying to print.Format.Annotated<A>, Format.Append, Format.Beneath, Format.Beside, Format.Block, Format.BoundVariable, Format.Comment, Format.Compound, Format.Context, Format.Empty, Format.Forester, Format.FormatPrinter, Format.FreeVariable, Format.Line, Format.Literal, Format.Markup, Format.Matcher, Format.MayBreak, Format.NonFormatPrinter, Format.Prior, Format.Rewriter, Format.Space, Format.Subst, Format.Tabular, Format.Variable, Format.Visitor| Modifier and Type | Field and Description |
|---|---|
protected String |
linePrefix |
protected @Opt String |
prefix |
protected @Opt String |
suffix |
subscomma, contentPrefixPrinted, DEFAULT_WIDTH, dot, empty, ground, indent, INDENT_NOT_SET, invalid, isAlwaysMultiline, LENGTH_PREFIX, literal, maxWidth, minWidth, pattern_illegal_literal, pattern_newline, pattern_ws, pattern_wsWithVars, spaceformat| Modifier | Constructor and Description |
|---|---|
protected |
Comment(@Opt String prefix,
String linePrefix,
@Opt String suffix,
List<Format> f) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcmax()
Calculate maximal width.
|
protected int |
calcmin()
Calculate minimal width.
|
protected boolean |
calcmult()
returns the "or" of all sub-formats.
|
protected void |
doprint(Format.FormatPrinter v)
Over-ridden by concrete sub-classes of Format, for performing
the adquate print operations.
|
calcground, debugPrefix, endMutation, eval, getSubs, isMutating, startMutation, sumMin_noTrailingBlanks, update, validateannotated, append, append, apply, apply, apply, apply, applyPartial, applyTo, applyTo, beneath, beneath, beside, beside, block, block, comment, comment, comment, comment, format, indent, indentIsSet, invalidate, isSpace, isValidContentForLiteral, line, line, list, list, list, list, list, literal, main, makeAppend, makeBeneath, makeBeside, makeBlock, makeLine, makeTabular, markup, markupLeft, markupRight, printFormat, printFormat, printNonFormat, prior, prior, quoteDTDstyle, quoteJavaStyle, showLn, showLn, showSwingTree, space, subst, subst, subst, tabular, tabular, text, textWithVars, toFormat, toObjString, toString, toString, variable, variableprotected String linePrefix
protected int calcmin()
Formatcalcmin in class Format.MayBreakprotected int calcmax()
Formatcalcmax in class Format.MayBreakprotected boolean calcmult()
Format.Compoundcalcmult in class Format.Compoundprotected void doprint(Format.FormatPrinter v)
Formatsee also the complete user documentation .