|
||||||||||
| 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.ClassOrInterfaceT
xtc.type.ClassT
public class ClassT
A class type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary |
|---|
| Fields inherited from class xtc.type.ClassOrInterfaceT |
|---|
fields, interfaces, methods, qname |
| Constructor Summary | |
|---|---|
ClassT(java.lang.String qname,
Type parent,
java.util.List<Type> interfaces,
java.util.List<Type> fields,
java.util.List<Type> methods)
Create a new class type. |
|
ClassT(Type template,
java.lang.String qname,
Type parent,
java.util.List<Type> interfaces,
java.util.List<Type> fields,
java.util.List<Type> methods)
Create a new class type. |
|
| Method Summary | |
|---|---|
ClassT |
copy()
Create a deep copy of this type. |
Type |
getParent()
Get the parent class. |
boolean |
isClass()
Determine whether this type is a class. |
Type.Tag |
tag()
Get this type's tag. |
ClassT |
toClass()
Get this type as a class. |
void |
write(java.lang.Appendable out)
Write a human readable representation to the specified appendable. |
| Methods inherited from class xtc.type.ClassOrInterfaceT |
|---|
equals, getFields, getInterfaces, getMethods, getName, getQName, getQualifier, hashCode, seal |
| 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, 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 ClassT(java.lang.String qname,
Type parent,
java.util.List<Type> interfaces,
java.util.List<Type> fields,
java.util.List<Type> methods)
qname - The fully qualified name.parent - The optional parent class.interfaces - The list of interfaces.fields - The list of fields.methods - The list of methods.
public ClassT(Type template,
java.lang.String qname,
Type parent,
java.util.List<Type> interfaces,
java.util.List<Type> fields,
java.util.List<Type> methods)
template - The type whose annotations to copy.qname - The fully qualified name.parent - The optional parent class.interfaces - The list of interfaces.fields - The list of fields.methods - The list of methods.| Method Detail |
|---|
public ClassT copy()
Type
copy in class Typepublic Type.Tag tag()
Type
tag in class TypeType.wtag()public boolean isClass()
Type
isClass in class Typetrue if this type is a class.public ClassT toClass()
Type
toClass in class Typepublic Type getParent()
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 | |||||||||