public abstract class ExtensibleTypeImpl<T extends ExtensibleType> extends TypeImpl implements ExtensibleType<T>
Modifier and Type | Field and Description |
---|---|
private java.util.List<TypeProxy<InterfaceModel>> |
implementedIntf |
private java.util.List<ParameterizedInterfaceModel> |
implementedParameterizedIntf |
private TypeProxy<?> |
parent |
private java.util.List<FieldModel> |
staticFields |
Constructor and Description |
---|
ExtensibleTypeImpl(java.lang.String name,
TypeProxy<Type> sink,
TypeProxy parent) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addField(FieldModel field) |
(package private) void |
addStaticField(FieldModel field) |
java.util.Collection<T> |
allSubTypes()
Returns all the children subtypes (including grand children) of
this type.
|
java.util.Collection<InterfaceModel> |
getInterfaces()
Returns an unmodifiable list of interfaces implemented or extended by
this type.
|
java.util.Collection<ParameterizedInterfaceModel> |
getParameterizedInterfaces() |
T |
getParent()
Return the parent type instance.
|
java.util.Collection<FieldModel> |
getStaticFields()
Returns an unmodifiable list of static fields defined by this type
|
(package private) void |
isImplementing(ParameterizedInterfaceModelImpl pim) |
(package private) void |
isImplementing(TypeProxy<InterfaceModel> intf) |
protected void |
print(java.lang.StringBuffer sb)
prints a meaningful string
|
TypeProxy<?> |
setParent(TypeProxy<?> parent) |
java.util.Collection<T> |
subTypes()
Returns the child subtypes of this type.
|
addDefiningURI, addMethod, getDefiningURIs, getMethods, getProxy, getReferences, wasDefinedIn
addAnnotation, getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefiningURIs, getMethods, getReferences, wasDefinedIn
getAnnotation, getAnnotations, getName, shortDesc
private TypeProxy<?> parent
private final java.util.List<FieldModel> staticFields
private final java.util.List<TypeProxy<InterfaceModel>> implementedIntf
private final java.util.List<ParameterizedInterfaceModel> implementedParameterizedIntf
public T getParent()
ExtensibleType
getParent
in interface ExtensibleType<T extends ExtensibleType>
void isImplementing(TypeProxy<InterfaceModel> intf)
void isImplementing(ParameterizedInterfaceModelImpl pim)
public java.util.Collection<InterfaceModel> getInterfaces()
ExtensibleType
getInterfaces
in interface ExtensibleType<T extends ExtensibleType>
public java.util.Collection<ParameterizedInterfaceModel> getParameterizedInterfaces()
getParameterizedInterfaces
in interface ExtensibleType<T extends ExtensibleType>
public java.util.Collection<T> subTypes()
ExtensibleType
subTypes
in interface ExtensibleType<T extends ExtensibleType>
public java.util.Collection<T> allSubTypes()
ExtensibleType
allSubTypes
in interface ExtensibleType<T extends ExtensibleType>
void addStaticField(FieldModel field)
void addField(FieldModel field)
public java.util.Collection<FieldModel> getStaticFields()
ExtensibleType
getStaticFields
in interface ExtensibleType<T extends ExtensibleType>