|
||||||||||
| 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
public abstract class ClassOrInterfaceT
The superclass of class and interface types.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class xtc.type.Type |
|---|
Type.Tag |
| Field Summary | |
|---|---|
protected java.util.List<Type> |
fields
The list of fields. |
protected java.util.List<Type> |
interfaces
The list of interfaces. |
protected java.util.List<Type> |
methods
The list of methods. |
protected java.lang.String |
qname
The fully qualfied name. |
| Constructor Summary | |
|---|---|
ClassOrInterfaceT(Type template,
java.lang.String qname,
java.util.List<Type> interfaces,
java.util.List<Type> fields,
java.util.List<Type> methods)
Create a new class or interface type. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Determine whether this type equals the specified object. |
java.util.List<Type> |
getFields()
Get the list of fields. |
java.util.List<Type> |
getInterfaces()
Get the list of interfaces. |
java.util.List<Type> |
getMethods()
Get the list of methods. |
java.lang.String |
getName()
Get the unqualified name. |
java.lang.String |
getQName()
Get the qualified name. |
java.lang.String |
getQualifier()
Get the qualifier for this class' or interface's name. |
int |
hashCode()
|
Type |
seal()
Seal this type. |
| 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, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String qname
protected java.util.List<Type> interfaces
interfaces.
protected java.util.List<Type> fields
fields.
protected java.util.List<Type> methods
methods.
| Constructor Detail |
|---|
public ClassOrInterfaceT(Type template,
java.lang.String qname,
java.util.List<Type> interfaces,
java.util.List<Type> fields,
java.util.List<Type> methods)
template - The template whose annotations to copy.qname - The fully qualified name.interfaces - The list of interfaces.fields - The list of fields.methods - The list of methods.| Method Detail |
|---|
public 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 java.lang.String getQName()
public java.lang.String getQualifier()
public java.lang.String getName()
getName in class Nodepublic java.util.List<Type> getInterfaces()
public java.util.List<Type> getFields()
public java.util.List<Type> getMethods()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object.
true if this type equals the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||