Package eu.bandm.tools.format
Class Format.Line
java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Format.Compound
eu.bandm.tools.format.Format.Line
- All Implemented Interfaces:
Formattable,Serializable,Cloneable
- Enclosing class:
Format
Prints all sub-formats in the same horizional line if this is
possible within the page width, otherwise it prints all sub-formats
in one vertical line.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.format.Format
Format.Annotated<A>, Format.Append, Format.Beneath, Format.Beside, Format.Block, Format.BoundVariable, Format.Comment, Format.Compound, Format.Context, Format.Empty, Format.FormatPrinter, Format.FreeVariable, Format.Line, Format.Literal, Format.Markup, Format.Matcher, Format.NonFormatPrinter, Format.Prior, Format.Rewriter, Format.Space, Format.Subst, Format.Tabular, Format.Variable, Format.Visitor -
Field Summary
Fields inherited from class eu.bandm.tools.format.Format.Compound
subsFields inherited from class eu.bandm.tools.format.Format
comma, DEFAULT_WIDTH, dot, empty, ground, ILLEGAL_IN_LITERAL, indent, INDENT_NOT_SET, isAlwaysMultiline, LENGTH_PREFIX, maxWidth, minWidth, space -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecute the printing.Creates a new instance of the same class as this, with sub-formats altered by the given consumer function.Methods inherited from class eu.bandm.tools.format.Format.Compound
debugPrefix, eval, indentMethods inherited from class eu.bandm.tools.format.Format
annotated, append, append, apply, apply, apply, apply, applyPartial, applyTo, applyTo, beneath, beneath, beside, beside, block, block, comment, comment, comment, comment, format, indentIsSet, isSpace, isValidContentForLiteral, line, line, literal, markup, markupLeft, markupRight, maxOfMins, of, printFormat, printFormat, printNonFormat, prior, prior, server, showLn, space, subst, subst, subst, tabular, tabular, toObjString, toString, toString, variable, variable
-
Constructor Details
-
Line
Constructor used by the factory methods. -
Line
Constructor used only internally by the cloning methods.
-
-
Method Details
-
constructor
-
mutate
Description copied from class:Format.CompoundCreates a new instance of the same class as this, with sub-formats altered by the given consumer function.- Specified by:
mutatein classFormat.Compound
-
doprint
Execute the printing. When we arrive here, the newline/indentation related to this Compound format has already been done, and v.pos points to the real start of the content.
-