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

java.lang.Object
  extended by org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
      extended by org.glassfish.hk2.classmodel.reflect.impl.FieldModelImpl
All Implemented Interfaces:
AnnotatedElement, FieldModel, Member

public class FieldModelImpl
extends AnnotatedElementImpl
implements FieldModel

Implementation of a field model


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.hk2.classmodel.reflect.Member
Member.Type
 
Constructor Summary
FieldModelImpl(String name, TypeProxy type, ExtensibleType declaringType)
           
 
Method Summary
 ExtensibleType getDeclaringType()
          Returns the declaring type of this field, which is a class.
 Member.Type getMemberType()
          returns the type of the member
 ExtensibleType getType()
          Returns the declared type of the field
protected  void print(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

FieldModelImpl

public FieldModelImpl(String name,
                      TypeProxy type,
                      ExtensibleType declaringType)
Method Detail

getMemberType

public Member.Type getMemberType()
Description copied from interface: Member
returns the type of the member

Specified by:
getMemberType in interface Member
Returns:
the member type as a value of @link{Member#Type}

getDeclaringType

public ExtensibleType getDeclaringType()
Description copied from interface: FieldModel
Returns the declaring type of this field, which is a class.

Specified by:
getDeclaringType in interface FieldModel
Specified by:
getDeclaringType in interface Member
Returns:
the field declaring class.

getType

public ExtensibleType getType()
Description copied from interface: FieldModel
Returns the declared type of the field

Specified by:
getType in interface FieldModel
Returns:
the field type

print

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


Copyright © 2013 Oracle Corporation. All Rights Reserved.