|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object piglet.meta.PigletLabel
public final class PigletLabel
This class represents a Label that can be used in creating a Label node in a piglet syntaxtree.
Method Summary | |
---|---|
static PigletLabel |
createLabel(java.lang.String prefix)
Returns a unique Label object, with the given prefix. |
static Label |
createLabelNode(PigletLabel plabel)
Creates and return a piglet syntaxtree node that represents a Label. |
static PigletLabel |
createRawLabel(java.lang.String theLabel)
Returns a raw Label object with the given label string. |
java.lang.String |
getLabel()
Returns the string representation of this Label. |
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public static PigletLabel 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 PigletLabel 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(PigletLabel 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 |