|
||||||||||
| 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.DerivedT
xtc.type.PointerT
public class PointerT
A pointer type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary | |
|---|---|
static PointerT |
TO_VOID
The canonical pointer to void. |
| Constructor Summary | |
|---|---|
PointerT(Type type)
Create a new pointer type. |
|
PointerT(Type template,
Type type)
Create a new pointer type. |
|
| Method Summary | |
|---|---|
PointerT |
copy()
Create a deep copy of this type. |
boolean |
equals(java.lang.Object o)
|
Type |
getType()
Get the pointed-to type. |
int |
hashCode()
|
boolean |
isPointer()
Determine whether this type is a pointer. |
Type |
seal()
Seal this type. |
Type.Tag |
tag()
Get this type's tag. |
PointerT |
toPointer()
Get this type as a pointer. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
| Methods inherited from class xtc.type.DerivedT |
|---|
isDerived |
| 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 |
| Field Detail |
|---|
public static final PointerT TO_VOID
| Constructor Detail |
|---|
public PointerT(Type type)
type - The pointed-to type.
public PointerT(Type template,
Type type)
template - The type whose annotations to copy.type - The pointed-to type.| Method Detail |
|---|
public PointerT 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 TypeType.seal(List)public Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isPointer()
Type
isPointer in class Typetrue if this type is a pointer.public PointerT toPointer()
Type
toPointer in class Typepublic Type getType()
public 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 | |||||||||