Package eu.bandm.tools.format
Class Line
java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Compound
eu.bandm.tools.format.Line
- All Implemented Interfaces:
Formattable,Serializable,Cloneable
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:
-
Field Summary
Fields inherited from class eu.bandm.tools.format.Format
comma, DEFAULT_WIDTH, dot, empty, indent, INDENT_NOT_SET, LENGTH_PREFIX, space -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThe constructor which sets all field values explicitly.protectedA constructor with some field values explicit, some calculated from the subformats.protectedA constructor with some field values explicit, some calculated from the subformats. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reification of the constructor of this instance.protected voidExecute the printing.Methods inherited from class eu.bandm.tools.format.Compound
debugPrefix, eval, getSubs, indent, mutateMethods inherited from class eu.bandm.tools.format.Format
annotated, append, append, apply, apply, apply, apply, applyPartial, applyTo, applyTo, beneath, beneath, beside, beside, block, block, checkValidIndent, comment, comment, comment, comment, format, getIndent, ground, indentIsSet, isAlwaysMultiline, isSpace, line, line, literal, markup, markupLeft, markupRight, maxOfMins, maxWidth, minWidth, of, printFormat, printFormat, printNonFormat, prior, prior, properties, server, showLn, space, subst, subst, subst, tabular, tabular, toObjString, toString, toString, variable, variable
-
Constructor Details
-
Line
A constructor with some field values explicit, some calculated from the subformats. In contrast to the factory methods, denormalized instances may be constructed.- Parameters:
f- the sub-formats contained in this compound- See Also:
-
Line
A constructor with some field values explicit, some calculated from the subformats. In contrast to the factory methods, denormalized instances may be constructed.- Parameters:
f- the sub-formats contained in this compound- See Also:
-
Line
The constructor which sets all field values explicitly. Consistency of the attributes must be realized by the caller. In contrast to the factory methods, denormalized instances may be constructed.- Parameters:
i- the minimal width of the formata- the maximal width of the formatm- whether the format will print to multiple lines anyhowg- whether the format does not contain any variableind- the indentation value of this formatf- the sub-formats contained in this compound- Throws:
IllegalArgumentException- if ident value not valid, seeFormat.checkValidIndent(int)
-
-
Method Details
-
constructor
Description copied from class:CompoundReturns the reification of the constructor of this instance. That enum type has "apply()" methods which generate a corresponding instance.- Specified by:
constructorin classCompound- Returns:
- the reification of the constructor of this instance.
-
doprint
Execute the printing. When we arrive here, the newline/indentation related to this Compound format has already been done, andv.pospoints to the real start of the content.
-