Package eu.bandm.tools.format
Class Rewriter
java.lang.Object
eu.bandm.tools.format.Rewriter
- Direct Known Subclasses:
ReferenceRewriter
General purpose Rewriter. Any instance must override the methods
where the rewritten structure shall be changed. The exchanged
subformat must be assigned to
result and must not be null.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoiddefault 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.Service point: start the rewriting process with the given format and return the result.
-
Field Details
-
result
Intermediate register for the rewriting result.
-
-
Constructor Details
-
Rewriter
public Rewriter()Sole constructor.
-
-
Method Details
-
rewrite
Service point: start the rewriting process with the given format and return the result.- Parameters:
f- the starting point of the rewriting process.- Returns:
- the result of rewriting
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
action
-
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.
-