Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.jackson.databind.introspect;
 
 
Intermediate base class for annotated entities that are members of a class; fields, methods and constructors. This is a superset of things that can represent logical properties as it contains constructors in addition to fields and methods.

Author(s):
tatu
public abstract class AnnotatedMember
    extends Annotated
    implements java.io.Serializable
    private static final long serialVersionUID = 7364428299211355871L;
    // Transient since information not needed after construction, so
    // no need to persist
    protected final transient AnnotationMap _annotations;
    protected AnnotatedMember(AnnotationMap annotations) {
        super();
         = annotations;
    }
    public abstract Class<?> getDeclaringClass();
    public abstract Member getMember();
    @Override
    protected AnnotationMap getAllAnnotations() {
        return ;
    }

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

    
Method called to augment annotations, by adding specified annotation if and only if it is not yet present in the annotation map we have.
    public final void addIfNotPresent(Annotation a) {
        .addIfNotPresent(a);
    }
    
    
Method that can be called to modify access rights, by calling java.lang.reflect.AccessibleObject.setAccessible(boolean) on the underlying annotated element.
    public final void fixAccess() {
        ClassUtil.checkAndFixAccess(getMember());
    }

    
Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type.

This is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)

    public abstract void setValue(Object pojoObject value)
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.

This is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)

    public abstract Object getValue(Object pojo)
New to GrepCode? Check out our FAQ X