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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<java.net.URI>getDefiningURIs()Returns the defining URIsjava.util.Collection<MethodModel>getMethods()Returns an unmodifiable collection of methods that are declared in this type.java.util.Collection<Member>getReferences()Returns a unmodifiable collection of this type references.booleanwasDefinedIn(java.util.Collection<java.net.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
java.util.Collection<MethodModel> getMethods()
Returns an unmodifiable collection of methods that are declared in this type.- Returns:
- methods declared on this type
-
getReferences
java.util.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
java.util.Collection<java.net.URI> getDefiningURIs()
Returns the defining URIs- Returns:
- a collection of URIs in which the type was defined
-
wasDefinedIn
boolean wasDefinedIn(java.util.Collection<java.net.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
-
-