Class InterfaceModelImpl
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
-
- org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
-
- org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl<InterfaceModel>
-
- 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
Constructors Constructor Description InterfaceModelImpl(java.lang.String name, TypeProxy<Type> sink, TypeProxy parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ClassModel>
allImplementations()
Returns an unmodifiable collection of all classes implementing this interface.java.util.Collection<ClassModel>
implementations()
Returns an unmodifiable collection of classes directly implementing this interfaceprotected void
print(java.lang.StringBuffer sb)
prints a meaningful string-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
addField, addStaticField, allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, isImplementing, isImplementing, setParent, subTypes
-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
addDefiningURI, addMethod, getDefiningURIs, getMethods, getProxy, getReferences, wasDefinedIn
-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
addAnnotation, getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, 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.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
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
-
-
-
-
Method Detail
-
implementations
public java.util.Collection<ClassModel> implementations()
Description copied from interface:InterfaceModel
Returns an unmodifiable collection of classes directly implementing this interface- Specified by:
implementations
in interfaceInterfaceModel
- Returns:
- list of classes implementing this interface
-
allImplementations
public java.util.Collection<ClassModel> allImplementations()
Description copied from interface:InterfaceModel
Returns an unmodifiable collection of all classes implementing this interface.- Specified by:
allImplementations
in interfaceInterfaceModel
- Returns:
- list of classes directly implementing this interface
-
print
protected void print(java.lang.StringBuffer sb)
Description copied from class:ExtensibleTypeImpl
prints a meaningful string- Overrides:
print
in classExtensibleTypeImpl<InterfaceModel>
- Parameters:
sb
- the string buffer to write to.
-
-