org.glassfish.hk2.classmodel.reflect
Interface Type

All Superinterfaces:
AnnotatedElement
All Known Subinterfaces:
AnnotationType, ClassModel, ExtensibleType<T>, InterfaceModel
All Known Implementing Classes:
AnnotationTypeImpl, ClassModelImpl, ExtensibleTypeImpl, InterfaceModelImpl, TypeImpl

public interface Type
extends AnnotatedElement

A type defines java type which can be an interface or a class.

Author:
Jerome Dochez

Method Summary
 Collection<URI> getDefiningURIs()
          Returns the defining URIs
 Collection<MethodModel> getMethods()
          Returns an unmodifiable collection of methods that are declared in this type.
 Collection<Member> getReferences()
          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 not
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
 

Method Detail

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

boolean wasDefinedIn(Collection<URI> uris)
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


Copyright © 2013 Oracle Corporation. All Rights Reserved.