org.glassfish.hk2.classmodel.reflect.impl
Class InterfaceModelImpl

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<InterfaceModel>
              extended by org.glassfish.hk2.classmodel.reflect.impl.InterfaceModelImpl
All Implemented Interfaces:
AnnotatedElement, ExtensibleType<InterfaceModel>, InterfaceModel, Type
Direct Known Subclasses:
AnnotationTypeImpl

public class InterfaceModelImpl
extends ExtensibleTypeImpl<InterfaceModel>
implements InterfaceModel

Implementation of an interface model


Constructor Summary
InterfaceModelImpl(String name, TypeProxy<Type> sink, TypeProxy parent)
           
 
Method Summary
 Collection<ClassModel> allImplementations()
          Returns an unmodifiable collection of all classes implementing this interface.
 Collection<ClassModel> implementations()
          Returns an unmodifiable collection of classes directly implementing this interface
protected  void print(StringBuffer sb)
          prints a meaningful string
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, setParent, subTypes
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
getDefiningURIs, getMethods, getReferences, 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.ExtensibleType
allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, subTypes
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.Type
getDefiningURIs, getMethods, getReferences, wasDefinedIn
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
 

Constructor Detail

InterfaceModelImpl

public InterfaceModelImpl(String name,
                          TypeProxy<Type> sink,
                          TypeProxy parent)
Method Detail

implementations

public Collection<ClassModel> implementations()
Description copied from interface: InterfaceModel
Returns an unmodifiable collection of classes directly implementing this interface

Specified by:
implementations in interface InterfaceModel
Returns:
list of classes implementing this interface

allImplementations

public Collection<ClassModel> allImplementations()
Description copied from interface: InterfaceModel
Returns an unmodifiable collection of all classes implementing this interface.

Specified by:
allImplementations in interface InterfaceModel
Returns:
list of classes directly implementing this interface

print

protected void print(StringBuffer sb)
Description copied from class: ExtensibleTypeImpl
prints a meaningful string

Overrides:
print in class ExtensibleTypeImpl<InterfaceModel>
Parameters:
sb - the string buffer to write to.


Copyright © 2013 Oracle Corporation. All Rights Reserved.