|
||||||||||
| 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.WrappedT
xtc.type.AliasT
public class AliasT
A type alias.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Constructor Summary | |
|---|---|
AliasT(java.lang.String name)
Create a new type alias. |
|
AliasT(java.lang.String name,
Type type)
Create a new type alias. |
|
AliasT(Type template,
java.lang.String name,
Type type)
Create a new type alias. |
|
| Method Summary | |
|---|---|
AliasT |
copy()
Create a deep copy of this type. |
java.lang.String |
getName()
Get the name. |
boolean |
hasAlias()
Determine whether this type contains an alias. |
boolean |
isAlias()
Determine whether this type is an alias. |
Type |
seal()
Seal this alias. |
AliasT |
toAlias()
Get this type as an alias. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
Type.Tag |
wtag()
Get this wrapped type's tag. |
| Methods inherited from class xtc.type.WrappedT |
|---|
equals, getAttribute, getConstant, getLanguage, getLocation, getScope, getShape, getType, hasAnnotated, hasAttribute, hasConstant, hasEnum, hasEnumerator, hashCode, hasInstantiated, hasLanguage, hasLocation, hasParameterized, hasScope, hasShape, hasTagged, hasVariable, isWrapped, resolve, setType, tag, toAnnotated, toEnum, toEnumerator, toInstantiated, toParameterized, toStructOrUnion, toTagged, toVariable, toWrapped |
| 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 AliasT(java.lang.String name)
name - The name.
public AliasT(java.lang.String name,
Type type)
name - The name.type - The type.
public AliasT(Type template,
java.lang.String name,
Type type)
template - The type whose annotations to copy.name - The name.type - The type.| Method Detail |
|---|
public Type seal()
seal in class WrappedTType.seal(List)public AliasT copy()
Type
copy in class Typepublic Type.Tag wtag()
Type
wtag in class TypeType.tag()public boolean isAlias()
Type
isAlias in class Typetrue if this type is an alias.public boolean hasAlias()
Type
hasAlias in class WrappedTtrue if this type contains an alias.public AliasT toAlias()
Type
toAlias in class WrappedTpublic java.lang.String getName()
getName in class Node
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 | |||||||||