com.fasterxml.jackson.databind.introspect

Class Annotated

    • Constructor Detail

      • Annotated

        protected Annotated()
    • Method Detail

      • getAnnotation

        public abstract <A extends Annotation> A getAnnotation(Class<A> acls)
      • hasAnnotation

        public final <A extends Annotation> boolean hasAnnotation(Class<A> acls)
      • withAnnotations

        public abstract Annotated withAnnotations(AnnotationMap fallback)
        Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones.
      • withFallBackAnnotationsFrom

        public final Annotated withFallBackAnnotationsFrom(Annotated annotated)
        Fluent factory method that will construct a new instance that uses annotations from specified Annotated as fallback annotations
      • getAnnotated

        public abstract AnnotatedElement getAnnotated()
        Method that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart.
      • getModifiers

        protected abstract int getModifiers()
      • isPublic

        public final boolean isPublic()
      • getName

        public abstract String getName()
      • getType

        public JavaType getType(TypeBindings context)
        Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
      • getGenericType

        public abstract Type getGenericType()
        Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
      • getRawType

        public abstract Class<?> getRawType()
        "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.
      • annotations

        public abstract Iterable<Annotation> annotations()
        Accessor that can be used to iterate over all the annotations associated with annotated component.
        Since:
        2.3
      • getAllAnnotations

        protected abstract AnnotationMap getAllAnnotations()
        Internal helper method used to access annotation information; not exposed to developers since instances are mutable.
      • hashCode

        public abstract int hashCode()
        Overrides:
        hashCode in class Object

Copyright © 2014-2015 FasterXML. All Rights Reserved.