|
||||||||||
| 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.AnnotatedT
public class AnnotatedT
An annotated type. This pseudo-type is useful for adding annotations to a type without modifying the underlying type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Constructor Summary | |
|---|---|
AnnotatedT(Type type)
Create a new annotated type. |
|
AnnotatedT(Type template,
Type type)
Create a new annotated type. |
|
| Method Summary | |
|---|---|
AnnotatedT |
copy()
Create a deep copy of this type. |
boolean |
isAnnotated()
Determine whether this type is annotated. |
AnnotatedT |
toAnnotated()
Get this type as an annotated type. |
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, hasAlias, hasAnnotated, hasAttribute, hasConstant, hasEnum, hasEnumerator, hashCode, hasInstantiated, hasLanguage, hasLocation, hasParameterized, hasScope, hasShape, hasTagged, hasVariable, isWrapped, resolve, seal, setType, tag, toAlias, 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, getName, 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 AnnotatedT(Type type)
type - The type to annotate.
public AnnotatedT(Type template,
Type type)
template - The type whose annotations to copy.type - The type to annotate.| Method Detail |
|---|
public AnnotatedT copy()
Type
copy in class Typepublic Type.Tag wtag()
Type
wtag in class TypeType.tag()public boolean isAnnotated()
Type
isAnnotated in class Typetrue if this type is annotated.public AnnotatedT toAnnotated()
Type
toAnnotated in class WrappedT
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 | |||||||||