Class TypeImpl
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
-
- org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
-
- All Implemented Interfaces:
AnnotatedElement,Type
- Direct Known Subclasses:
ExtensibleTypeImpl
public class TypeImpl extends AnnotatedElementImpl implements Type
Implementation of the Type abstraction.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<java.net.URI>definingURIsprivate java.util.List<MethodModel>methodsprivate TypeProxy<Type>sink
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddDefiningURI(java.net.URI uri)(package private) voidaddMethod(MethodModelImpl m)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.(package private) TypeProxy<Type>getProxy()java.util.Collection<Member>getReferences()Returns a unmodifiable collection of this type references.protected voidprint(java.lang.StringBuffer sb)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 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
-
-
-
-
Field Detail
-
methods
private final java.util.List<MethodModel> methods
-
definingURIs
private final java.util.Set<java.net.URI> definingURIs
-
-
Method Detail
-
getDefiningURIs
public java.util.Collection<java.net.URI> getDefiningURIs()
Description copied from interface:TypeReturns the defining URIs- Specified by:
getDefiningURIsin interfaceType- Returns:
- a collection of URIs in which the type was defined
-
addDefiningURI
void addDefiningURI(java.net.URI uri)
-
wasDefinedIn
public boolean wasDefinedIn(java.util.Collection<java.net.URI> uris)
Description copied from interface:TypeDetermine if this type was defined in one of the passed URI or not- Specified by:
wasDefinedInin interfaceType- 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
-
addMethod
void addMethod(MethodModelImpl m)
-
getMethods
public java.util.Collection<MethodModel> getMethods()
Description copied from interface:TypeReturns an unmodifiable collection of methods that are declared in this type.- Specified by:
getMethodsin interfaceType- Returns:
- methods declared on this type
-
getReferences
public java.util.Collection<Member> getReferences()
Description copied from interface:TypeReturns 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- Specified by:
getReferencesin interfaceType- Returns:
- references on this type
-
print
protected void print(java.lang.StringBuffer sb)
- Overrides:
printin classAnnotatedElementImpl
-
-