|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spiglet.meta.SpigletTemp
public final class SpigletTemp
This class represents a Temp object (immutable) that can be used in the creation of spiglet syntaxtree node.
Method Summary | |
---|---|
static SpigletTemp |
createRawTemp(int ord)
Returns a Temp object with the user-specified ordinal number |
static SpigletTemp |
createTemp()
Returns a unique Temp object. |
static Temp |
createTempNode(SpigletTemp temp)
Creates and return a spiglet syntaxtree node that represents a Temp. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object is also a
SpigletTemp , and the two have the same ordinal number. |
int |
getOrdinal()
Returns this Temp's register number. |
int |
hashCode()
|
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getOrdinal()
public boolean equals(java.lang.Object obj)
true
if the specified object is also a
SpigletTemp
, and the two have the same ordinal number.
equals
in class java.lang.Object
obj
- object to be compared for equality with this Temp
true
if the specified object is equal to this Temppublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static SpigletTemp createRawTemp(int ord)
ord
- the ordinal
public static SpigletTemp createTemp()
public static Temp createTempNode(SpigletTemp 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 |