Interface CodeGenerator

All Known Implementing Classes:
AbstractCodeGenVisitor, AbstractJavaGenVisitor, AssignmentExpressionsJavaGenVisitor, BitExpressionsJavaGenVisitor, CommonExpressionsJavaGenVisitor, ExpressionsBasisJavaGenVisitor, LambdaExpressionsJavaGenVisitor, MCCommonLiteralsJavaGenVisitor, TupleExpressionsJavaGenVisitor, UglyExpressionsJavaGenVisitor

public interface CodeGenerator
  • Method Summary

    Modifier and Type
    Method
    Description
    generateCode(de.monticore.ast.ASTNode node)
    Generates code for the given node, adding the results to the end of an IndentPrinter.
    de.monticore.prettyprint.IndentPrinter
     
  • Method Details

    • generateCode

      String generateCode(de.monticore.ast.ASTNode node)
      Generates code for the given node, adding the results to the end of an IndentPrinter. Further details are to be specified by the concrete CodeGenerators.
    • getPrinter

      de.monticore.prettyprint.IndentPrinter getPrinter()
      Returns:
      the printer storing the (intermediate/final results)