org.codehaus.jackson.map.introspect
Class AnnotatedField

java.lang.Object
  extended by org.codehaus.jackson.map.introspect.Annotated
      extended by org.codehaus.jackson.map.introspect.AnnotatedField

public final class AnnotatedField
extends Annotated


Constructor Summary
AnnotatedField(Field field, AnnotationMap annMap)
           
 
Method Summary
 void addOrOverride(Annotation a)
          Method called to override an annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' constructor has.
 void fixAccess()
          Method that can be called to modify access rights, by calling AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean) on the underlying annotated element.
 Field getAnnotated()
           
<A extends Annotation>
A
getAnnotation(Class<A> acls)
           
 int getAnnotationCount()
           
 Class<?> getDeclaringClass()
           
 String getFullName()
           
 Type getGenericType()
           
 int getModifiers()
           
 String getName()
           
 Class<?> getType()
          Method used with annotated things that have class type.
 String toString()
           
 
Methods inherited from class org.codehaus.jackson.map.introspect.Annotated
hasAnnotation, isPublic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedField

public AnnotatedField(Field field,
                      AnnotationMap annMap)
Method Detail

addOrOverride

public void addOrOverride(Annotation a)
Method called to override an annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' constructor has.


getAnnotated

public Field getAnnotated()
Specified by:
getAnnotated in class Annotated

getModifiers

public int getModifiers()
Specified by:
getModifiers in class Annotated

getName

public String getName()
Specified by:
getName in class Annotated

getAnnotation

public <A extends Annotation> A getAnnotation(Class<A> acls)
Specified by:
getAnnotation in class Annotated

getType

public Class<?> getType()
Description copied from class: Annotated
Method used with annotated things that have class type.

Specified by:
getType in class Annotated

getGenericType

public Type getGenericType()

getDeclaringClass

public Class<?> getDeclaringClass()

getFullName

public String getFullName()

getAnnotationCount

public int getAnnotationCount()

fixAccess

public void fixAccess()
Method that can be called to modify access rights, by calling AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean) on the underlying annotated element.


toString

public String toString()
Overrides:
toString in class Object