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:
AnnotationTypeImpl, ExtensibleTypeImpl

public class TypeImpl
extends AnnotatedElementImpl
implements Type

Implementation of the Type abstraction.

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
annotations, name
 
Constructor Summary
TypeImpl(ModelBuilder tb)
           
 
Method Summary
 java.util.Collection<FieldModel> getFieldReferences()
          Returns a unmodifiable collection of fields references.
 java.util.Collection<MethodModel> getMethods()
          Returns an unmodifiable collection of methods that are declared in this type.
protected  void print(java.lang.StringBuffer sb)
           
 
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(ModelBuilder tb)
Method Detail

getMethods

public java.util.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

getFieldReferences

public java.util.Collection<FieldModel> getFieldReferences()
Description copied from interface: Type
Returns a unmodifiable collection of fields references. A field reference is a field declaration in a type which type is this instance.

Specified by:
getFieldReferences in interface Type
Returns:
fields references on this type

print

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


Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.