Package eu.bandm.tools.format
Class Beneath
java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Compound
eu.bandm.tools.format.Beneath
- All Implemented Interfaces:
Formattable,Serializable,Cloneable
Prints its sub-formats vertically aligned one beneath the other.
Please note that in this case (naturally) the indents of all
sub-formats will
be respected, because all are printed at the start of a new 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 voidOver-ridden by all sub-classes of Format, for performing the print operations.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
-
Beneath
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:
-
Beneath
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:
-
Beneath
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
Description copied from class:FormatOver-ridden by all sub-classes of Format, for performing the print operations.
-