Class TreePrintVisitor
java.lang.Object
de.monticore.generating.templateengine.reporting.commons.TreePrintVisitor
- All Implemented Interfaces:
IVisitor
We use the visit mechanism to map the AST to a list of showing the AST-Nodes
as tree. As a basis we use ast2idents that maps each node into a string in a
compact form. Result is store as list for print
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionproduces the raw tree without any decorationTreePrintVisitor(ReportingRepository repo, Map<String, String> endLineDecoration, Map<String, List<String>> astNodeExtraInfos) produces the tree with an inline decoration (at the end of each line) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoidsetAstNodeExtraInfos(Map<String, List<String>> astNodeExtraInfos) voidsetEndLineDecoration(Map<String, String> endLineDecoration) voidsetRepo(ReportingRepository repo) void
-
Field Details
-
repo
-
treeResult
-
-
Constructor Details
-
TreePrintVisitor
public TreePrintVisitor()produces the raw tree without any decoration -
TreePrintVisitor
public TreePrintVisitor(ReportingRepository repo, Map<String, String> endLineDecoration, Map<String, List<String>> astNodeExtraInfos) produces the tree with an inline decoration (at the end of each line)
-
-
Method Details