Class Annotations


  • public class Annotations
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <A extends java.lang.annotation.Annotation>
      java.util.Optional<A>
      findPropertyAnnotation​(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanPropertyDefinition, java.lang.Class<A> annotationClass)
      Finds first annotation of the given type on the given bean property and returns it.
      static boolean memberIsUnwrapped​(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)  
      static java.lang.String memberName​(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)  
      static java.lang.String unwrappedPrefix​(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findPropertyAnnotation

        public static <A extends java.lang.annotation.Annotation> java.util.Optional<A> findPropertyAnnotation​(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition beanPropertyDefinition,
                                                                                                               java.lang.Class<A> annotationClass)
        Finds first annotation of the given type on the given bean property and returns it. Search precedence is getter, setter, field.
        Type Parameters:
        A - type that extends Annotation
        Parameters:
        beanPropertyDefinition - introspected jackson property definition
        annotationClass - class object representing desired annotation
        Returns:
        first annotation found for property
      • memberIsUnwrapped

        public static boolean memberIsUnwrapped​(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
      • unwrappedPrefix

        public static java.lang.String unwrappedPrefix​(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)
      • memberName

        public static java.lang.String memberName​(com.fasterxml.jackson.databind.introspect.AnnotatedMember member)