Interface Type
- All Superinterfaces:
AnnotatedElement
- All Known Subinterfaces:
AnnotationType
,ClassModel
,ExtensibleType<T>
,InterfaceModel
- All Known Implementing Classes:
AnnotationTypeImpl
,ClassModelImpl
,ExtensibleTypeImpl
,InterfaceModelImpl
,TypeImpl
A type defines java type which can be an interface or a class.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the defining URIsReturns an unmodifiable collection of methods that are declared in this type.Returns a unmodifiable collection of this type references.boolean
wasDefinedIn
(Collection<URI> uris) Determine if this type was defined in one of the passed URI or notMethods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
Method Details
-
getMethods
Collection<MethodModel> getMethods()Returns an unmodifiable collection of methods that are declared in this type.- Returns:
- methods declared on this type
-
getReferences
Collection<Member> getReferences()Returns a unmodifiable collection of this type references. A reference can be a field declaration in a type which type is this instance or it can be a method declaration which return type is this type- Returns:
- references on this type
-
getDefiningURIs
Collection<URI> getDefiningURIs()Returns the defining URIs- Returns:
- a collection of URIs in which the type was defined
-
wasDefinedIn
Determine if this type was defined in one of the passed URI or not- Parameters:
uris
- collection of URI to check if this type was defined in them.- Returns:
- true if this type as defined in one the passed URI
-