java.lang.Object
de.monticore.generating.templateengine.reporting.commons.TreePrintVisitor
All Implemented Interfaces:
IVisitor

public class TreePrintVisitor extends Object implements 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 Details

  • 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