|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object piglet.meta.PigletTemp
public final class PigletTemp
This class represents a Temp object that can be used in the creation of piglet syntaxtree node.
Method Summary | |
---|---|
static PigletTemp |
createTemp()
Returns a unique Temp object. |
static Temp |
createTempNode(PigletTemp temp)
Creates and return a piglet syntaxtree node that represents a Temp. |
int |
getOrdinal()
|
static PigletTemp |
getPreTemp(int ord)
Returns pre-created, well known Temp objects with ordinals 0-19 |
static void |
reset()
Resets the static counter of the class' Temp number enumerator. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getOrdinal()
public java.lang.String toString()
toString
in class java.lang.Object
public static PigletTemp getPreTemp(int ord)
ord
- the ordinal of the pre-Temp object
public static PigletTemp createTemp()
public static Temp createTempNode(PigletTemp temp)
temp
- the Temp object
public static void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |