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

    • 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()  
      private void appendInBraces​(java.lang.StringBuilder buf, java.lang.String s)  
      boolean equals​(java.lang.Object other)  
      private static java.lang.Class<?> getAnnotationLiteralSubclass​(java.lang.Class<?> clazz)  
      private java.lang.reflect.Method[] getMembers()  
      private static java.lang.Object getMemberValue​(java.lang.reflect.Method member, java.lang.annotation.Annotation instance)  
      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)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • annotationType

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

        private transient java.lang.reflect.Method[] members
      • cachedHashCode

        private transient java.lang.Integer cachedHashCode
    • 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
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.annotation.Annotation
        Overrides:
        toString in class java.lang.Object
      • appendInBraces

        private void appendInBraces​(java.lang.StringBuilder buf,
                                    java.lang.String s)
      • 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
      • getMemberValue

        private static java.lang.Object getMemberValue​(java.lang.reflect.Method member,
                                                       java.lang.annotation.Annotation instance)
      • invoke

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