org.glassfish.hk2.classmodel.reflect.impl
Class ExtensibleTypeImpl<T extends ExtensibleType>

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
      extended by org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
          extended by org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl<T>
All Implemented Interfaces:
AnnotatedElement, ExtensibleType<T>, Type
Direct Known Subclasses:
ClassModelImpl, InterfaceModelImpl

public abstract class ExtensibleTypeImpl<T extends ExtensibleType>
extends TypeImpl
implements ExtensibleType<T>

Implementation of an extensible type (Class or Interface)


Field Summary
 
Fields inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
annotations, name
 
Constructor Summary
ExtensibleTypeImpl(java.lang.String name, TypeProxy<Type> sink, java.net.URI definingURI, TypeProxy parent)
           
 
Method Summary
 T getParent()
          Return the parent type instance.
protected  void print(java.lang.StringBuffer sb)
           
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
getDefiningURIs, getFieldReferences, getMethods, wasDefinedIn
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, shortDesc, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.Type
getDefiningURIs, getFieldReferences, getMethods, wasDefinedIn
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
 

Constructor Detail

ExtensibleTypeImpl

public ExtensibleTypeImpl(java.lang.String name,
                          TypeProxy<Type> sink,
                          java.net.URI definingURI,
                          TypeProxy parent)
Method Detail

getParent

public T getParent()
Description copied from interface: ExtensibleType
Return the parent type instance. If there are more than one parent with the same FQCN within the various URI we parsed, we return the one defined within the same URI (if it exists). If there is more than one parsed metadata with the same FQCN and none of them are defined within the same URI as this type, then null is returned.

Specified by:
getParent in interface ExtensibleType<T extends ExtensibleType>
Returns:
the parent type instance or null

print

protected void print(java.lang.StringBuffer sb)
Overrides:
print in class TypeImpl


Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.