00001: package clogs.transform; 00002: 00003: 00004: public class Fresh 00005: { 00006: static int counterLabel = 0; 00007: static int counterVar = 0; 00008: 00009: 00010: public static String getLabel () 00011: { 00012: return "lab_" + counterLabel++; 00013: } 00014: 00015: 00016: public static String getLabel (String previous) 00017: { 00018: if (previous.startsWith ("lab_")) { 00019: return previous; 00020: } else { 00021: return getLabel () + "_" + previous; 00022: } 00023: } 00024: 00025: 00026: public static String getVar () 00027: { 00028: return "var_" + counterVar++; 00029: } 00030: } 00031: