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 abstract boolean hasAnnotation(Class<?> acls)
      • hasOneOf

        public abstract boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
        Since:
        2.7
      • 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 abstract JavaType getType()
        Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
        Since:
        2.7
      • getGenericType

        @Deprecated
        public Type getGenericType()
        Deprecated. Since 2.7 should instead use getType(). To be removed from 2.8
        JDK declared generic type of the annotated element; definition of what exactly this means depends on sub-class. Note that such type can not be reliably resolved without TypeResolutionContext, and as a result use of this method was deprecated in Jackson 2.7: see getType() for replacement.
      • 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 © 2008–2016 FasterXML. All rights reserved.