Package eu.bandm.tools.format
Class NonFormatPrinter
java.lang.Object
eu.bandm.tools.format.Visitor
eu.bandm.tools.format.NonFormatPrinter
Prints a format discarding all formatting.
Variables are printed as such and not resolved against any context.
Is used by
Format.toString() and thus ubiquituously used
in debugging.
(Deeper graphs will hardly be human-readable.)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVisit all sub formats of the compound format and print them, separated by one space character.voidPrint nothing.voidPrint the contents of the literal format.voidPrint the contents of the markup format.voidVisit the sub-formats of the prior format, dependent on dynamic situation w.r.t.voidPrint every space format as one single space character.voidVisit the sub formats of the compound format.voidVisit all sub formats of the compound format and print them, separated by one space character.voidPrint the un-resolved variable as a symbolic representation of prefix and name, followed by a space.default voidSwitch controlled by type, which calls a particular methodaction(f)with the most-specific class of the format.default voidCentral switch controlled by type, which calls a particular methodaction(f)with the most-specific class of the format.default voidSwitch conrolled by type, which calls a particular methodaction(f)with the most-specific class of the format.default voidSwitch controlled by type, which calls a particular methodaction(f)with the most-specific class of the format.protected voidAuxiliary method: visit all sub formats of a compound format and print them, separated by one space character.
-
Constructor Details
-
NonFormatPrinter
Sole constructor.- Parameters:
p- the target of the printing.
-
-
Method Details
-
printWithSpace
Auxiliary method: visit all sub formats of a compound format and print them, separated by one space character.- Parameters:
f- the compound to visit.
-
action
Visit all sub formats of the compound format and print them, separated by one space character. -
action
Visit all sub formats of the compound format and print them, separated by one space character. -
action
Print nothing. -
action
Print the contents of the literal format. -
action
Print the contents of the markup format. -
action
Visit the sub-formats of the prior format, dependent on dynamic situation w.r.t. other prior formats. -
action
Print every space format as one single space character. -
action
Visit the sub formats of the compound format. The subst format itself is a scope for the evaluation process and transparent to printing. -
action
Print the un-resolved variable as a symbolic representation of prefix and name, followed by a space. -
match
Switch controlled by type, which calls a particular methodaction(f)with the most-specific class of the format.- Parameters:
o- the object to visit.
-
match
Central switch controlled by type, which calls a particular methodaction(f)with the most-specific class of the format.- Parameters:
f- the format to visit.
-
match
Switch controlled by type, which calls a particular methodaction(f)with the most-specific class of the format.- Parameters:
f- the format to visit.
-
match
Switch conrolled by type, which calls a particular methodaction(f)with the most-specific class of the format.- Parameters:
f- the format to visit.
-