Class Node2Name

java.lang.Object
de.monticore.codegen.util.Node2Name

public class Node2Name extends Object
used in CodeGen Visitors.
  • Field Details

    • delegate

      protected static Node2Name delegate
    • class2NumOfInstances

      protected Map<Class<? extends de.monticore.ast.ASTNode>,Integer> class2NumOfInstances
    • instance2Number

      protected Map<de.monticore.ast.ASTNode,Integer> instance2Number
  • Constructor Details

    • Node2Name

      public Node2Name()
  • Method Details

    • getName

      public static String getName(de.monticore.ast.ASTNode ast)
      Maps a given ASTNode to a (part of a) name that can be used for variables or similar.
    • _getName

      protected String _getName(de.monticore.ast.ASTNode ast)
    • class2Name

      protected String class2Name(Class<? extends de.monticore.ast.ASTNode> c)
    • init

      public static void init()
    • reset

      public static void reset()
    • setDelegate

      protected static void setDelegate(Node2Name newDelegate)
    • getDelegate

      protected static Node2Name getDelegate()