|
||||||||||
| 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.InstantiatedT
public class InstantiatedT
An instantiated type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Constructor Summary | |
|---|---|
InstantiatedT(java.util.List<Type> arguments,
Type type)
Create a new instantiated type. |
|
InstantiatedT(Type template,
java.util.List<Type> arguments,
Type type)
Create a new instantiated type. |
|
InstantiatedT(Type argument,
Type type)
Create a new instantiated type. |
|
| Method Summary | |
|---|---|
InstantiatedT |
copy()
Create a deep copy of this type. |
boolean |
equals(java.lang.Object o)
Determine whether this type equals the specified object. |
java.util.List<Type> |
getArguments()
Get this instantiated type's arguments. |
boolean |
hasInstantiated()
Determine whether this type has an instantiated type. |
boolean |
isInstantiated()
Determine whether this type is instantiated. |
Type |
seal()
Seal this type. |
InstantiatedT |
toInstantiated()
Get this type as an instantiated 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 |
|---|
getAttribute, getConstant, getLanguage, getLocation, getScope, getShape, getType, hasAlias, hasAnnotated, hasAttribute, hasConstant, hasEnum, hasEnumerator, hashCode, hasLanguage, hasLocation, hasParameterized, hasScope, hasShape, hasTagged, hasVariable, isWrapped, resolve, setType, tag, toAlias, toAnnotated, toEnum, toEnumerator, 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 InstantiatedT(Type argument,
Type type)
argument - The argument.type - The type.
java.lang.IllegalArgumentException - Signals that the specified type
does not contain a parameterized type or that the number of
arguments does not match the parameterized type's number of
parameters.
public InstantiatedT(java.util.List<Type> arguments,
Type type)
arguments - The arguments.type - The type.
java.lang.IllegalArgumentException - Signals that the specified type
does not contain a parameterized type or that the number of
arguments does not match the parameterized type's number of
parameters.
public InstantiatedT(Type template,
java.util.List<Type> arguments,
Type type)
template - The type whose annotations to copy.arguments - The arguments.type - The type.
java.lang.IllegalArgumentException - Signals that the specified type
does not contain a parameterized type or that the number of
arguments does not match the parameterized type's number of
parameters.| Method Detail |
|---|
public InstantiatedT copy()
Type
copy in class Typepublic Type seal()
Typetype, the corresponding overridden method reads:
public Type seal() {
if (! isSealed()) {
super.seal();
type.seal();
}
return this;
}
First testing whether a type is sealed and then invoking the
superclass' seal() method avoids infinite recursions
for mutually recursive types.
seal in class WrappedTType.seal(List)public Type.Tag wtag()
Type
wtag in class TypeType.tag()public boolean isInstantiated()
Type
isInstantiated in class Typetrue if this type is instantiated.public boolean hasInstantiated()
Type
hasInstantiated in class WrappedTtrue if this type has an instantiated type.public InstantiatedT toInstantiated()
Type
toInstantiated in class WrappedTpublic java.util.List<Type> getArguments()
public boolean equals(java.lang.Object o)
equals in class WrappedTo - The object.
true if this type equals the specified
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 | |||||||||