java.lang.Object
de.monticore.generating.templateengine.reporting.commons.ReportingRepository

public class ReportingRepository extends Object
ReportingRepository holds all used formatted ASTNode strings. All string representations for a ASTNode should be retrieved from this repository (getASTNodeNameFormatted method).
  • Field Details

  • Constructor Details

  • Method Details

    • getNameFormatted

      protected String getNameFormatted(Object obj, String out, de.se_rwth.commons.SourcePosition sourcePos)
    • getASTNodeNameFormatted

      public String getASTNodeNameFormatted(ASTNode a)
      Method that converts the ASTNode into a formatted string with a source position if this is possible. The structure of the string is @nodeName!nodeType(x,y) or @nodeName!nodeType(!ID).
      Parameters:
      a - that should be converted into unique String
      Returns:
      representation of the ASTNode that contains either the position or a unique identification number for the object
    • getSymbolNameFormatted

      public String getSymbolNameFormatted(ISymbol symbol)
      Method that converts the Symbol into a formatted string with a source position if this is possible. The structure of the string is @symbolName!symbolType(x,y) or @symbolName!symbolType(!ID).
      Parameters:
      symbol - The symbol that should be converted into unique String
      Returns:
      representation of the ASTNode that contains either the position or a unique identification number for the object
    • getScopeNameFormatted

      public String getScopeNameFormatted(IScope scope)
      Method that converts the Symbol into a formatted string with a source position if this is possible. The structure of the string is @symbolName!symbolType(x,y) or @symbolName!symbolType(!ID).
      Parameters:
      scope - The scope that should be converted into unique String
      Returns:
      representation of the ASTNode that contains either the position or a unique identification number for the object
    • getAllHWJavaNames

      public Set<String> getAllHWJavaNames()
    • getAllHWTemplateNames

      public Set<String> getAllHWTemplateNames()