Class JSONAnnotationValues

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    public class JSONAnnotationValues
    extends java.lang.Object
    implements JSON
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<? extends java.lang.annotation.Annotation> annotationType  
      protected boolean include  
      protected java.lang.String name  
      protected boolean strict  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()  
      boolean include()  
      java.lang.String name()  
      static JSONAnnotationValues of​(jodd.util.AnnotationParser annotationParser, java.lang.reflect.AnnotatedElement annotatedElement)
      Shortcut for checking the annotation on annotated element and returning either the values or null.
      static jodd.util.AnnotationParser parserFor​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
      Shortcut methods for given annotation class.
      boolean strict()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.annotation.Annotation

        equals, hashCode, toString
    • Field Detail

      • strict

        protected final boolean strict
      • name

        protected final java.lang.String name
      • include

        protected final boolean include
      • annotationType

        protected final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
    • Method Detail

      • parserFor

        public static jodd.util.AnnotationParser parserFor​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
        Shortcut methods for given annotation class.
      • of

        public static JSONAnnotationValues of​(jodd.util.AnnotationParser annotationParser,
                                              java.lang.reflect.AnnotatedElement annotatedElement)
        Shortcut for checking the annotation on annotated element and returning either the values or null.
      • strict

        public boolean strict()
      • name

        public java.lang.String name()
      • include

        public boolean include()
      • annotationType

        public java.lang.Class<? extends java.lang.annotation.Annotation> annotationType()
        Specified by:
        annotationType in interface java.lang.annotation.Annotation