|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kanga.meta.KangaLabel
public final class KangaLabel
This class represents a Label that can be used in creating a Label node in a Kanga syntaxtree.
Method Summary | |
---|---|
static KangaLabel |
createLabel(java.lang.String prefix)
Returns a unique Label object, with the given prefix. |
static Label |
createLabelNode(KangaLabel plabel)
Creates and return a Kanga syntaxtree node that represents a Label. |
static KangaLabel |
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 KangaLabel 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 KangaLabel 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(KangaLabel 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 |