| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.databind.introspect.Annotated
com.fasterxml.jackson.databind.introspect.AnnotatedMember
com.fasterxml.jackson.databind.introspect.AnnotatedField
public final class AnnotatedField
Object that represents non-static (and usually non-transient/volatile) fields of a class.
| Field Summary | |
|---|---|
| protected  Field | _fieldActual Fieldused for access. | 
| protected  com.fasterxml.jackson.databind.introspect.AnnotatedField.Serialization | _serializationTemporary field required for JDK serialization support | 
| Fields inherited from class com.fasterxml.jackson.databind.introspect.AnnotatedMember | 
|---|
| _annotations | 
| Constructor Summary | |
|---|---|
| protected  | AnnotatedField(com.fasterxml.jackson.databind.introspect.AnnotatedField.Serialization ser)Method used for JDK serialization support | 
|   | AnnotatedField(Field field,
               AnnotationMap annMap) | 
| Method Summary | ||
|---|---|---|
|  Field | getAnnotated()Method that can be used to find actual JDK element that this instance represents. | |
| 
 | getAnnotation(Class<A> acls) | |
|  int | getAnnotationCount() | |
|  Class<?> | getDeclaringClass() | |
|  String | getFullName() | |
|  Type | getGenericType()Full generic type of the annotated element; definition of what exactly this means depends on sub-class. | |
|  Member | getMember() | |
|  int | getModifiers() | |
|  String | getName() | |
|  Class<?> | getRawType()"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class. | |
|  Object | getValue(Object pojo)Optional method that can be used to access the value of this member on given object, if this is a supported operation for member type. | |
|  void | setValue(Object pojo,
         Object value)Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type. | |
|  String | toString() | |
|  AnnotatedField | withAnnotations(AnnotationMap ann)Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones. | |
| Methods inherited from class com.fasterxml.jackson.databind.introspect.AnnotatedMember | 
|---|
| addIfNotPresent, addOrOverride, fixAccess, getAllAnnotations | 
| Methods inherited from class com.fasterxml.jackson.databind.introspect.Annotated | 
|---|
| getType, hasAnnotation, isPublic, withFallBackAnnotationsFrom | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected final transient Field _field
Field used for access.
Transient since it can not be persisted directly using JDK serialization
protected com.fasterxml.jackson.databind.introspect.AnnotatedField.Serialization _serialization
| Constructor Detail | 
|---|
public AnnotatedField(Field field,
                      AnnotationMap annMap)
protected AnnotatedField(com.fasterxml.jackson.databind.introspect.AnnotatedField.Serialization ser)
| Method Detail | 
|---|
public AnnotatedField withAnnotations(AnnotationMap ann)
Annotated
withAnnotations in class Annotatedpublic Field getAnnotated()
Annotated
getAnnotated in class Annotatedpublic int getModifiers()
getModifiers in class Annotatedpublic String getName()
getName in class Annotatedpublic <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation in class Annotatedpublic Type getGenericType()
Annotated
getGenericType in class Annotatedpublic Class<?> getRawType()
Annotated
getRawType in class Annotatedpublic Class<?> getDeclaringClass()
getDeclaringClass in class AnnotatedMemberpublic Member getMember()
getMember in class AnnotatedMember
public void setValue(Object pojo,
                     Object value)
              throws IllegalArgumentException
AnnotatedMemberThis is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)
setValue in class AnnotatedMemberIllegalArgumentException
public Object getValue(Object pojo)
                throws IllegalArgumentException
AnnotatedMemberThis is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)
getValue in class AnnotatedMemberIllegalArgumentExceptionpublic String getFullName()
public int getAnnotationCount()
public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||