|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spiglet.meta.SpigletLabel
public final class SpigletLabel
This class represents a Label that can be used in creating a Label node in a Spiglet syntaxtree.
Method Summary | |
---|---|
static SpigletLabel |
createLabel(java.lang.String prefix)
Returns a unique Label object, with the given prefix. |
static Label |
createLabelNode(SpigletLabel plabel)
Creates and return a spiglet syntaxtree node that represents a Label. |
static SpigletLabel |
createRawLabel(java.lang.String theLabel)
Returns a raw Label object with the given label string. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLabel()
Returns the string representation of this Label. |
int |
hashCode()
|
static void |
reset()
Resets the static counter of the class' label number enumerator. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getLabel()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static SpigletLabel createLabel(java.lang.String prefix)
Label
object, with the given prefix. Each
subsequently created Label
object has a unique number attached to
the end of the given prefix, regardless of the prefix.
prefix
- the prefix
public static SpigletLabel createRawLabel(java.lang.String theLabel)
Label
object with the given label string. No
numerical suffix is involved.
theLabel
- the label string
Label
objectpublic static Label createLabelNode(SpigletLabel plabel)
plabel
- the label object
public static void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |