public abstract class ClassOrInterfaceT extends DerivedT
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addAttribute, annotate, attribute, attribute, attribute, attributes, cast, checkNotSealed, constant, constant, copy, copy, deannotate, getAttribute, getAttribute, getConstant, getConstant, getLanguage, getLanguage, getLocation, getLocation, getScope, getScope, getShape, getShape, hasAlias, hasAnnotated, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hasAttributes, hasConstant, hasConstant, hasEnum, hasEnumerator, hasError, hasInstantiated, hasLanguage, hasLanguage, hasLocation, hasLocation, hasParameterized, hasScope, hasScope, hasShape, hasShape, hasStructOrUnion, hasTag, hasTagged, hasVariable, hasWTag, isAlias, isAnnotated, isArray, isBoolean, isClass, isConcrete, isEnum, isEnumerator, isError, isFloat, isFunction, isInstantiated, isInteger, isInterface, isInternal, isInternalParameter, isLabel, isMethod, isNamedParameter, isNumber, isPackage, isParameter, isParameterized, isPointer, isSealed, isStruct, isTuple, isUnion, isUnit, isVariable, isVariant, isVoid, isWildcard, isWrapped, language, locate, locate, mark, properties, removeAttribute, removeProperty, resolve, resolve, scope, seal, setLocation, setLocation, setProperty, shape, shape, tag, toAlias, toAnnotated, toArray, toBoolean, toClass, toEnum, toEnumerator, toFloat, toFunction, toInstantiated, toInteger, toInterface, toInternal, toInternalParameter, toLabel, toMethod, toNamedParameter, toNumber, toPackage, toParameter, toParameterized, toPointer, toStruct, toStructOrUnion, toTagged, toTuple, toUnion, toUnit, toVariable, toVariant, toVoid, toWildcard, toWrapped, trace, wtagadd, 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, writeprotected java.lang.String qname
protected java.util.List<Type> interfaces
interfaces.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.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()
public 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.Copyright © 2014. All Rights Reserved.