Package eu.bandm.tools.metajava.format
Class Unparser
java.lang.Object
eu.bandm.tools.metajava.format.Unparser
- All Implemented Interfaces:
Unparser
A converter from metajava models to Java TDOM.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPackageFile
(MetaPackage metaPackage) ML20170609 Copied from the boot code metajava/FormattingVisitor (only this level knows ".out"!)static eu.bandm.tools.metajava.tdom.Element_file
unparse
(GeneratedSourceFile file) static eu.bandm.tools.metajava.tdom.Element_file
unparse
(GeneratedSourceFile file, @Opt GeneratedPackage packInfo) boolean
write
(GeneratedPackage... packs) boolean
write
(GeneratedSourceFile file) Write only one file.void
-
Field Details
-
done
-
-
Constructor Details
-
Unparser
ML added comment 20170609:- Parameters:
destination
- The position of the root of the source file tree to generate.
-
Unparser
ML added comment 20170609:- Parameters:
destination
- The position of the root of the source file tree to generate.
-
Unparser
public Unparser()
-
-
Method Details
-
getPackageFile
ML20170609 Copied from the boot code metajava/FormattingVisitor (only this level knows ".out"!)- Returns:
- the directory in which all class sources of the given package will reside.
-
writeBinaries
- Specified by:
writeBinaries
in interfaceUnparser
-
write
Write only one file. (Esp. no package-info.java, etc.) Is currently (20221109) calledby muli/CatalogToJava, umod/Main, option/Compiler (NOT by Tdom2format), -
write
-
unparse
-
unparse
public static eu.bandm.tools.metajava.tdom.Element_file unparse(GeneratedSourceFile file, @Opt @Opt GeneratedPackage packInfo) -
formatClassBody
- Specified by:
formatClassBody
in interfaceUnparser
-