|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxtc.tree.Node
xtc.type.Type
xtc.type.LabelT
public class LabelT
A label type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Constructor Summary | |
|---|---|
LabelT(java.lang.String name)
Create a new label type. |
|
LabelT(Type template,
java.lang.String name)
Create a new label type. |
|
| Method Summary | |
|---|---|
LabelT |
copy()
Create a deep copy of this type. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Get the name. |
int |
hashCode()
|
boolean |
isLabel()
Determine whether this type is a label. |
Type.Tag |
tag()
Get this type's tag. |
LabelT |
toLabel()
Get this type as a label. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
| Methods inherited from class xtc.tree.Node |
|---|
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getNode, getProperty, getString, getStringProperty, getTokenText, hasName, hasProperty, hasTraversal, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, remove, set, size, strip, toAnnotation, toList, toString, toToken |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LabelT(java.lang.String name)
name - The name.
public LabelT(Type template,
java.lang.String name)
template - The type whose annotations to copy.name - The name.| Method Detail |
|---|
public LabelT copy()
Type
copy in class Typepublic Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isLabel()
Type
isLabel in class Typetrue if this type is a label.public LabelT toLabel()
Type
toLabel in class Typepublic java.lang.String getName()
getName in class Nodepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
public void write(java.lang.Appendable out)
throws java.io.IOException
NodeObject.toString().
write in class Nodeout - The appendable.
java.io.IOException - Signals an I/O error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||