Class AnnotatedClass

    • Field Detail

      • _type

        protected final JavaType _type
        Since:
        2.7
      • _class

        protected final java.lang.Class<?> _class
        Class for which annotations apply, and that owns other components (constructors, methods)
      • _bindings

        protected final TypeBindings _bindings
        Type bindings to use for members of _class.
        Since:
        2.7
      • _superTypes

        protected final java.util.List<JavaType> _superTypes
        Ordered set of super classes and interfaces of the class itself: included in order of precedence
      • _annotationIntrospector

        protected final AnnotationIntrospector _annotationIntrospector
        Filter used to determine which annotations to gather; used to optimize things so that unnecessary annotations are ignored.
      • _typeFactory

        protected final TypeFactory _typeFactory
        Since:
        2.7
      • _mixInResolver

        protected final ClassIntrospector.MixInResolver _mixInResolver
        Object that knows mapping of mix-in classes (ones that contain annotations to add) with their target classes (ones that get these additional annotations "mixed in").
      • _primaryMixIn

        protected final java.lang.Class<?> _primaryMixIn
        Primary mix-in class; one to use for the annotated class itself. Can be null.
      • _collectAnnotations

        protected final boolean _collectAnnotations
        Flag that indicates whether (fulll) annotation resolution should occur: starting with 2.11 is disabled for JDK container types.
        Since:
        2.11
      • _classAnnotations

        protected final Annotations _classAnnotations
        Combined list of Jackson annotations that the class has, including inheritable ones from super classes and interfaces
      • _memberMethods

        protected AnnotatedMethodMap _memberMethods
        Member methods of interest; for now ones with 0 or 1 arguments (just optimization, since others won't be used now)
      • _fields

        protected java.util.List<AnnotatedField> _fields
        Member fields of interest: ones that are either public, or have at least one annotation.
      • _nonStaticInnerClass

        protected transient java.lang.Boolean _nonStaticInnerClass
        Lazily determined property to see if this is a non-static inner class.
        Since:
        2.8.7
    • Method Detail

      • getAnnotated

        public java.lang.Class<?> getAnnotated()
        Description copied from class: Annotated
        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.
        Specified by:
        getAnnotated in class Annotated
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class Annotated
      • getAnnotation

        public <A extends java.lang.annotation.Annotation> A getAnnotation​(java.lang.Class<A> acls)
        Specified by:
        getAnnotation in class Annotated
      • hasAnnotation

        public boolean hasAnnotation​(java.lang.Class<?> acls)
        Specified by:
        hasAnnotation in class Annotated
      • hasOneOf

        public boolean hasOneOf​(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
        Specified by:
        hasOneOf in class Annotated
      • getRawType

        public java.lang.Class<?> getRawType()
        Description copied from class: Annotated
        "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.
        Specified by:
        getRawType in class Annotated
      • annotations

        @Deprecated
        public java.lang.Iterable<java.lang.annotation.Annotation> annotations()
        Deprecated.
        Description copied from class: Annotated
        Accessor that can be used to iterate over all the annotations associated with annotated component.
        Specified by:
        annotations in class Annotated
      • getType

        public JavaType getType()
        Description copied from class: Annotated
        Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
        Specified by:
        getType in class Annotated
      • hasAnnotations

        public boolean hasAnnotations()
      • getFactoryMethods

        public java.util.List<AnnotatedMethod> getFactoryMethods()
        Since:
        2.9
      • memberMethods

        public java.lang.Iterable<AnnotatedMethod> memberMethods()
      • getMemberMethodCount

        public int getMemberMethodCount()
      • findMethod

        public AnnotatedMethod findMethod​(java.lang.String name,
                                          java.lang.Class<?>[] paramTypes)
      • getFieldCount

        public int getFieldCount()
      • isNonStaticInnerClass

        public boolean isNonStaticInnerClass()
        Since:
        2.9
      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Annotated
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class Annotated