Package eu.bandm.tools.format
Class Beside
java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Compound
eu.bandm.tools.format.Beside
- All Implemented Interfaces:
Formattable,Serializable,Cloneable
Prints all sub-formats directly adjacent, even if they are multi-line.
Esp. it starts the n-th sub-format in the line and column where the
(n-1)-th sub-format ended.
- 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
-
Beside
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:
-
Beside
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:
-
Beside
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.
-