Package eu.bandm.tools.format
Class Format.FreeVariable
java.lang.Object
eu.bandm.tools.format.Format
eu.bandm.tools.format.Format.Variable
eu.bandm.tools.format.Format.FreeVariable
- All Implemented Interfaces:
Formattable
,Serializable
,Cloneable
- Enclosing class:
- Format
Variable identified by a alphanumeric name which can be
bound explicitly.
- 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.Variable
name
Fields inherited from class eu.bandm.tools.format.Format
comma, DEFAULT_WIDTH, dot, empty, ground, indent, INDENT_NOT_SET, isAlwaysMultiline, LENGTH_PREFIX, maxWidth, minWidth, pattern_illegal_literal, space
-
Constructor Summary
ConstructorDescriptionFreeVariable
(String name) FreeVariable
(String name, int indent) Set index and indentation value. -
Method Summary
Modifier and TypeMethodDescriptioneval
(Format.Context c, boolean partial) Replace this by the binding defined in the context.indent
(int i) Unsupported Operation.Methods inherited from class eu.bandm.tools.format.Format.Variable
bottom, debugPrefix, doprint
Methods 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, makeAppend, makeBeneath, makeBeside, makeBlock, makeLine, makeTabular, 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
-
FreeVariable
-
FreeVariable
Set index and indentation value. ???? FIXME WIRD NICHT VERWENDET !?!?
-
-
Method Details
-
indent
Unsupported Operation. Variables will be replaced completely> by some other format before the containing format will be laid out and printed. This includes the indentation value. For a constant indentation behaviour for any such replacement use an expression likeappend(empty.ident(i), new FreeVariable(name))
-
eval
Replace this by the binding defined in the context. If no such binding exists leave this unaltered ifpartial==true
, otherwise throw the exception defined byFormat.Variable.bottom()
.
-