Class AnnotationInfoInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    class AnnotationInfoInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean annotationArrayFieldEquals​(java.lang.annotation.Annotation[] a1, java.lang.annotation.Annotation[] a2)  
      private boolean arrayFieldEquals​(java.lang.Class<?> componentType, java.lang.Object o1, java.lang.Object o2)  
      private int arrayFieldHash​(java.lang.Class<?> componentType, java.lang.Object o)  
      boolean equals​(java.lang.annotation.Annotation a1, java.lang.annotation.Annotation a2)  
      private boolean fieldEquals​(java.lang.Class<?> type, java.lang.Object o1, java.lang.Object o2)  
      private int hashCode​(java.lang.annotation.Annotation a)  
      private int hashField​(java.lang.String name, java.lang.Object value)  
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      private boolean isValidAnnotationFieldType​(java.lang.Class<?> type)  
      private java.lang.Object maybeCoerceValue​(java.lang.Object value, java.lang.Class type)  
      private java.lang.String toString​(java.lang.annotation.Annotation a)  
      • Methods inherited from class java.lang.Object

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

      • AnnotationInfoInvocationHandler

        public AnnotationInfoInvocationHandler​(IAnnotationInfo ai)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • maybeCoerceValue

        private java.lang.Object maybeCoerceValue​(java.lang.Object value,
                                                  java.lang.Class type)
      • equals

        public boolean equals​(java.lang.annotation.Annotation a1,
                              java.lang.annotation.Annotation a2)
      • hashCode

        private int hashCode​(java.lang.annotation.Annotation a)
      • toString

        private java.lang.String toString​(java.lang.annotation.Annotation a)
      • isValidAnnotationFieldType

        private boolean isValidAnnotationFieldType​(java.lang.Class<?> type)
      • hashField

        private int hashField​(java.lang.String name,
                              java.lang.Object value)
      • fieldEquals

        private boolean fieldEquals​(java.lang.Class<?> type,
                                    java.lang.Object o1,
                                    java.lang.Object o2)
      • arrayFieldEquals

        private boolean arrayFieldEquals​(java.lang.Class<?> componentType,
                                         java.lang.Object o1,
                                         java.lang.Object o2)
      • annotationArrayFieldEquals

        private boolean annotationArrayFieldEquals​(java.lang.annotation.Annotation[] a1,
                                                   java.lang.annotation.Annotation[] a2)
      • arrayFieldHash

        private int arrayFieldHash​(java.lang.Class<?> componentType,
                                   java.lang.Object o)