Class ClassModelImpl
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
-
- org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
-
- org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl<ClassModel>
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<FieldModel>
fields
-
Constructor Summary
Constructors Constructor Description ClassModelImpl(java.lang.String name, TypeProxy<Type> sink, TypeProxy parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addField(FieldModel field)
java.util.Collection<FieldModel>
getFields()
Returns an unmodifiable collection of fields models that represent all the declared fields of this classes.protected void
print(java.lang.StringBuffer sb)
prints a meaningful string-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
addStaticField, allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, isImplementing, isImplementing, setParent, subTypes
-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
addDefiningURI, addMethod, getDefiningURIs, getMethods, getProxy, getReferences, wasDefinedIn
-
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
-
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
-
-
-
-
Field Detail
-
fields
final java.util.List<FieldModel> fields
-
-
Method Detail
-
addField
void addField(FieldModel field)
- Overrides:
addField
in classExtensibleTypeImpl<ClassModel>
-
getFields
public java.util.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 interfaceClassModel
- Returns:
- collection of declared fields
-
print
protected void print(java.lang.StringBuffer sb)
Description copied from class:ExtensibleTypeImpl
prints a meaningful string- Overrides:
print
in classExtensibleTypeImpl<ClassModel>
- Parameters:
sb
- the string buffer to write to.
-
-