Package eu.bandm.tools.metajava
Class ReferenceRewriter
java.lang.Object
eu.bandm.tools.format.Rewriter
eu.bandm.tools.metajava.ReferenceRewriter
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceRewriter(GeneratedSourceContext context) ReferenceRewriter(GeneratedSourceContext context, Set<? extends String> obscured) -
Method Summary
Modifier and TypeMethodDescriptionvoiddefault 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.optimizeReference(Format ref, MetaClass target, List<GeneratedAnnotation> annotations)
-
Constructor Details
-
ReferenceRewriter
-
ReferenceRewriter
-
-
Method Details
-
action
-
optimizeReference
public Format optimizeReference(Format ref, MetaClass target, List<GeneratedAnnotation> annotations) -
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.
-