|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.introspect.Annotated
org.codehaus.jackson.map.introspect.AnnotatedMember
org.codehaus.jackson.map.introspect.AnnotatedField
public final class AnnotatedField
Object that represents non-static (and usually non-transient/volatile) fields of a class.
Field Summary | |
---|---|
protected Field |
_field
|
Fields inherited from class org.codehaus.jackson.map.introspect.AnnotatedMember |
---|
_annotations |
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. |
|
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. |
|
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 org.codehaus.jackson.map.introspect.AnnotatedMember |
---|
fixAccess, getAllAnnotations |
Methods inherited from class org.codehaus.jackson.map.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 Field _field
Constructor Detail |
---|
public AnnotatedField(Field field, AnnotationMap annMap)
Method Detail |
---|
public AnnotatedField withAnnotations(AnnotationMap ann)
Annotated
withAnnotations
in class Annotated
public void addOrOverride(Annotation a)
public Field getAnnotated()
Annotated
getAnnotated
in class Annotated
public int getModifiers()
getModifiers
in class Annotated
public String getName()
getName
in class Annotated
public <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation
in class Annotated
public Type getGenericType()
Annotated
getGenericType
in class Annotated
public Class<?> getRawType()
Annotated
getRawType
in class Annotated
public Class<?> getDeclaringClass()
getDeclaringClass
in class AnnotatedMember
public Member getMember()
getMember
in class AnnotatedMember
public void setValue(Object pojo, Object value) throws IllegalArgumentException
AnnotatedMember
This is implemented for fiedlds and single-argument methods; but not for constructor parameters or other types of methods.
setValue
in class AnnotatedMember
IllegalArgumentException
public 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 |