|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elang.syntax.HilbertHotel
Untamed:
Field Summary | |
private int |
myTempCount
generated temp variable count |
Constructor Summary | |
HilbertHotel()
Enabled: |
Method Summary | |
static String |
baseName(String name)
Enabled: If 'name' could have been generated by 'newTemp(base)', return 'base'. |
String |
newTemp(String name)
Enabled: generate 'unique' temporary variable names for transformations. |
static String |
rename(String name)
Enabled: Even if given an ident that could have been generated by newTemp() or rename(), rename() will return names guaranteed not to conflict with each other. |
private static int |
tempSep(String name)
If 'name' ends in "_" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int myTempCount
Constructor Detail |
public HilbertHotel()
Method Detail |
public String newTemp(String name)
private static int tempSep(String name)
public static String baseName(String name)
Otherwise, return 'name'. This is our sort-of demangler.
public static String rename(String name)
The argument to rename() is the room assignment before the bus drives up. rename() returns the resulting assignment. Since this transformation is deterministic, rename() is a static method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |