Class AnnotationLiteral<T extends java.lang.annotation.Annotation>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<T> annotationType  
      private java.lang.reflect.Method[] members  
      private static long serialVersionUID
      For serialization
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AnnotationLiteral()  
    • 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 equals​(java.lang.Object other)  
      private static java.lang.Class<?> getAnnotationLiteralSubclass​(java.lang.Class<?> clazz)  
      private java.lang.reflect.Method[] getMembers()  
      private static <T> java.lang.Class<T> getTypeParameter​(java.lang.Class<?> annotationLiteralSuperclass)  
      int hashCode()  
      private static java.lang.Object invoke​(java.lang.reflect.Method method, java.lang.Object instance)  
      private static void setAccessible​(java.lang.reflect.AccessibleObject ao)  
      • Methods inherited from class java.lang.Object

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

        toString
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization
        See Also:
        Constant Field Values
      • annotationType

        private transient java.lang.Class<T extends java.lang.annotation.Annotation> annotationType
      • members

        private transient java.lang.reflect.Method[] members
    • Constructor Detail

      • AnnotationLiteral

        protected AnnotationLiteral()
    • Method Detail

      • getMembers

        private java.lang.reflect.Method[] getMembers()
      • getAnnotationLiteralSubclass

        private static java.lang.Class<?> getAnnotationLiteralSubclass​(java.lang.Class<?> clazz)
      • getTypeParameter

        private static <T> java.lang.Class<T> getTypeParameter​(java.lang.Class<?> annotationLiteralSuperclass)
      • annotationType

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

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface java.lang.annotation.Annotation
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.lang.annotation.Annotation
        Overrides:
        hashCode in class java.lang.Object
      • setAccessible

        private static void setAccessible​(java.lang.reflect.AccessibleObject ao)
      • invoke

        private static java.lang.Object invoke​(java.lang.reflect.Method method,
                                               java.lang.Object instance)