|
||||||||||
| 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.ParameterizedT
public class ParameterizedT
A parameterized type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Constructor Summary | |
|---|---|
ParameterizedT(java.util.List<Parameter> parameters,
Type type)
Create a new parameterized type. |
|
ParameterizedT(Parameter parameter,
Type type)
Create a new parameterized type. |
|
ParameterizedT(Type template,
java.util.List<Parameter> parameters,
Type type)
Create a new parameterized type. |
|
| Method Summary | |
|---|---|
ParameterizedT |
copy()
Create a deep copy of this type. |
java.util.List<Parameter> |
getParameters()
Get this parameterized type's parameters. |
boolean |
hasParameterized()
Determine whether this type has a parameterized type. |
boolean |
isParameterized()
Determine whether this type is parameterized. |
Type |
seal()
Seal this type. |
ParameterizedT |
toParameterized()
Get this type as a parameterized 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, hasScope, hasShape, hasTagged, hasVariable, isWrapped, resolve, setType, tag, toAlias, toAnnotated, toEnum, toEnumerator, toInstantiated, 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 ParameterizedT(Parameter parameter,
Type type)
parameter - The single parameter.type - The type.
public ParameterizedT(java.util.List<Parameter> parameters,
Type type)
parameters - The parameters.type - The type.
public ParameterizedT(Type template,
java.util.List<Parameter> parameters,
Type type)
template - The type whose annotations to copy.parameters - The parameters.type - The type.| Method Detail |
|---|
public ParameterizedT 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 isParameterized()
Type
isParameterized in class Typetrue if this type is parameterized.public boolean hasParameterized()
Type
hasParameterized in class WrappedTtrue if this type has a parameterized type.public ParameterizedT toParameterized()
Type
toParameterized in class WrappedTpublic java.util.List<Parameter> getParameters()
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 | |||||||||