org.glassfish.hk2.classmodel.reflect.impl
Class TypeImpl

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
      extended by 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.

Author:
Jerome Dochez

Constructor Summary
TypeImpl(String name, TypeProxy<Type> sink)
           
 
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.
protected  void print(StringBuffer sb)
           
 boolean wasDefinedIn(Collection<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
getAnnotation, getAnnotations, getName, 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
 

Constructor Detail

TypeImpl

public TypeImpl(String name,
                TypeProxy<Type> sink)
Method Detail

getDefiningURIs

public Collection<URI> getDefiningURIs()
Description copied from interface: Type
Returns the defining URIs

Specified by:
getDefiningURIs in interface Type
Returns:
a collection of URIs in which the type was defined

wasDefinedIn

public boolean wasDefinedIn(Collection<URI> uris)
Description copied from interface: Type
Determine if this type was defined in one of the passed URI or not

Specified by:
wasDefinedIn in interface Type
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

getMethods

public Collection<MethodModel> getMethods()
Description copied from interface: Type
Returns an unmodifiable collection of methods that are declared in this type.

Specified by:
getMethods in interface Type
Returns:
methods declared on this type

getReferences

public Collection<Member> getReferences()
Description copied from interface: Type
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

Specified by:
getReferences in interface Type
Returns:
references on this type

print

protected void print(StringBuffer sb)
Overrides:
print in class AnnotatedElementImpl


Copyright © 2013 Oracle Corporation. All Rights Reserved.