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

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
      extended by org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
          extended by org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl<ClassModel>
              extended by org.glassfish.hk2.classmodel.reflect.impl.ClassModelImpl
All Implemented Interfaces:
AnnotatedElement, ClassModel, ExtensibleType<ClassModel>, Type

public class ClassModelImpl
extends ExtensibleTypeImpl<ClassModel>
implements ClassModel

Implementation of a class model


Constructor Summary
ClassModelImpl(String name, TypeProxy<Type> sink, TypeProxy parent)
           
 
Method Summary
 Collection<FieldModel> getFields()
          Returns an unmodifiable collection of fields models that represent all the declared fields of this classes.
protected  void print(StringBuffer sb)
          prints a meaningful string
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, setParent, subTypes
 
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
getDefiningURIs, getMethods, getReferences, wasDefinedIn
 
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.ExtensibleType
allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, subTypes
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.Type
getDefiningURIs, getMethods, getReferences, wasDefinedIn
 
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
 

Constructor Detail

ClassModelImpl

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

getFields

public Collection<FieldModel> getFields()
Description copied from interface: ClassModel
Returns an unmodifiable collection of fields models that represent all the declared fields of this classes.

Specified by:
getFields in interface ClassModel
Returns:
collection of declared fields

print

protected void print(StringBuffer sb)
Description copied from class: ExtensibleTypeImpl
prints a meaningful string

Overrides:
print in class ExtensibleTypeImpl<ClassModel>
Parameters:
sb - the string buffer to write to.


Copyright © 2013 Oracle Corporation. All Rights Reserved.